AbstractOptionPackageInstallationPlugin::getExistingCategory() - string used as array...
authormutec <mutec@users.noreply.github.com>
Wed, 31 Aug 2016 12:18:37 +0000 (14:18 +0200)
committerGitHub <noreply@github.com>
Wed, 31 Aug 2016 12:18:37 +0000 (14:18 +0200)
wcfsetup/install/files/lib/system/package/plugin/AbstractOptionPackageInstallationPlugin.class.php

index 328f49607c50c1c77efc0d216af60c31bba6c061..e04546510ed15b3107d1c5d70cf0aec7f4e888cf 100644 (file)
@@ -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