Fixed missing array index
authorAlexander Ebert <ebert@woltlab.com>
Wed, 7 Sep 2011 16:20:12 +0000 (18:20 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 7 Sep 2011 16:20:12 +0000 (18:20 +0200)
wcfsetup/install/files/lib/system/package/plugin/AbstractXMLPackageInstallationPlugin.class.php

index bd63e7c1fd8e236587bc45200b9a3b3e5d47a9b1..c0e2df706266e179f9b2c6fd5fe4be7d022c3c35 100644 (file)
@@ -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