From: Alexander Ebert Date: Fri, 13 Jan 2017 16:07:59 +0000 (+0100) Subject: Fixed array syntax X-Git-Tag: 3.0.1~44 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f4b8390b7c379e64f537bbb387716edd6ffa89d7;p=GitHub%2FWoltLab%2FWCF.git Fixed array syntax --- diff --git a/wcfsetup/install/files/lib/system/package/plugin/UserNotificationEventPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/UserNotificationEventPackageInstallationPlugin.class.php index 89db89a50f..7c7277dcc5 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/UserNotificationEventPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/UserNotificationEventPackageInstallationPlugin.class.php @@ -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'];