From f4b8390b7c379e64f537bbb387716edd6ffa89d7 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 13 Jan 2017 17:07:59 +0100 Subject: [PATCH] Fixed array syntax --- .../UserNotificationEventPackageInstallationPlugin.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']; -- 2.20.1