From: mutec Date: Wed, 31 Aug 2016 12:18:37 +0000 (+0200) Subject: AbstractOptionPackageInstallationPlugin::getExistingCategory() - string used as array... X-Git-Tag: 3.0.0_Beta_1~372^2~2^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=959735a88a9d726e6e0ad69be35f8382a8836c98;p=GitHub%2FWoltLab%2FWCF.git AbstractOptionPackageInstallationPlugin::getExistingCategory() - string used as array fixed --- 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