From 959735a88a9d726e6e0ad69be35f8382a8836c98 Mon Sep 17 00:00:00 2001 From: mutec Date: Wed, 31 Aug 2016 14:18:37 +0200 Subject: [PATCH] AbstractOptionPackageInstallationPlugin::getExistingCategory() - string used as array fixed --- .../plugin/AbstractOptionPackageInstallationPlugin.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/system/package/plugin/AbstractOptionPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/AbstractOptionPackageInstallationPlugin.class.php index 328f49607c..e04546510e 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/AbstractOptionPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/AbstractOptionPackageInstallationPlugin.class.php @@ -213,7 +213,7 @@ abstract class AbstractOptionPackageInstallationPlugin extends AbstractXMLPackag WHERE categoryName = ?"; $statement = WCF::getDB()->prepareStatement($sql); $statement->execute([ - $category['categoryName'] + $category ]); return $statement->fetchArray(); } @@ -226,7 +226,7 @@ abstract class AbstractOptionPackageInstallationPlugin extends AbstractXMLPackag */ protected function saveCategory($category) { // search existing category - $row = $this->getExistingCategory($category); + $row = $this->getExistingCategory($category['categoryName']); if (empty($row['categoryID'])) { // insert new category $sql = "INSERT INTO ".$this->application.WCF_N."_".$this->tableName."_category -- 2.20.1