Fixed page menu PIP issue
authorMarcel Werk <burntime@woltlab.com>
Sun, 26 May 2013 13:52:26 +0000 (15:52 +0200)
committerMarcel Werk <burntime@woltlab.com>
Sun, 26 May 2013 13:52:26 +0000 (15:52 +0200)
wcfsetup/install/files/lib/system/package/plugin/PageMenuPackageInstallationPlugin.class.php

index 79b141ab4428060ac2e5c743baee82328e99927e..fc18abe5f0709124ddb80189e564d92dc4bad948 100644 (file)
@@ -105,7 +105,7 @@ class PageMenuPackageInstallationPlugin extends AbstractMenuPackageInstallationP
                                SET     showOrder = showOrder + 1
                                WHERE   showOrder >= ?
                                        AND menuPosition = ?
-                               ".($data['parentMenuItem'] ? "AND parentMenuItem = ?" : "");
+                                       AND parentMenuItem = ".($data['parentMenuItem'] ? "?" : "''");
                        $statement = WCF::getDB()->prepareStatement($sql);
                        
                        $parameters = array(