From 65c6031d7a6dc1c26f77d5fdc406c2547368afe6 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 7 Sep 2011 18:20:12 +0200 Subject: [PATCH] Fixed missing array index --- .../plugin/AbstractXMLPackageInstallationPlugin.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/package/plugin/AbstractXMLPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/AbstractXMLPackageInstallationPlugin.class.php index bd63e7c1fd..c0e2df7062 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/AbstractXMLPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/AbstractXMLPackageInstallationPlugin.class.php @@ -290,7 +290,7 @@ abstract class AbstractXMLPackageInstallationPlugin extends AbstractPackageInsta $statement = WCF::getDB()->prepareStatement($sql); $statement->execute($conditions->getParameters()); $maxShowOrder = $statement->fetchArray(); - return (!$maxShowOrder) ? 1 : ($maxShowOrder + 1); + return (!$maxShowOrder) ? 1 : ($maxShowOrder['showOrder'] + 1); } else { // increase all showOrder values which are >= $showOrder -- 2.20.1