From: Alexander Ebert Date: Wed, 7 Sep 2011 16:20:12 +0000 (+0200) Subject: Fixed missing array index X-Git-Tag: 2.0.0_Beta_1~1765^2~49 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=65c6031d7a6dc1c26f77d5fdc406c2547368afe6;p=GitHub%2FWoltLab%2FWCF.git Fixed missing array index --- 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