Fixed array syntax
authorAlexander Ebert <ebert@woltlab.com>
Fri, 13 Jan 2017 16:07:59 +0000 (17:07 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 13 Jan 2017 16:07:59 +0000 (17:07 +0100)
wcfsetup/install/files/lib/system/package/plugin/UserNotificationEventPackageInstallationPlugin.class.php

index 89db89a50fe96cb370cf9ab8155de1691aeb9ca3..7c7277dcc54db60a4a891ae75add06577833aa07 100644 (file)
@@ -141,7 +141,7 @@ class UserNotificationEventPackageInstallationPlugin extends AbstractXMLPackageI
                                        WHERE   definitionName = 'com.woltlab.wcf.notification.objectType'
                                )";
                $statement = WCF::getDB()->prepareStatement($sql, 1);
-               $statement->execute(array($objectType));
+               $statement->execute([$objectType]);
                $row = $statement->fetchArray();
                if (empty($row['objectTypeID'])) throw new SystemException("unknown notification object type '".$objectType."' given");
                return $row['objectTypeID'];