Fixes issue with PageMenuPIP
authorMatthias Schmidt <gravatronics@live.com>
Fri, 17 May 2013 08:03:23 +0000 (10:03 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 17 May 2013 08:03:23 +0000 (10:03 +0200)
wcfsetup/install/files/lib/system/package/plugin/PageMenuPackageInstallationPlugin.class.php

index dab7b2f05534671cef343a8e028be1e8bda8ceb0..79b141ab4428060ac2e5c743baee82328e99927e 100644 (file)
@@ -108,13 +108,13 @@ class PageMenuPackageInstallationPlugin extends AbstractMenuPackageInstallationP
                                ".($data['parentMenuItem'] ? "AND parentMenuItem = ?" : "");
                        $statement = WCF::getDB()->prepareStatement($sql);
                        
-                       $data = array(
+                       $parameters = array(
                                $data['showOrder'],
                                $data['menuPosition']
                        );
-                       if ($data['parentMenuItem']) $data[] = $data['parentMenuItem'];
+                       if ($data['parentMenuItem']) $parameters[] = $data['parentMenuItem'];
                        
-                       $statement->execute($data);
+                       $statement->execute($parameters);
                        
                        // return the wanted showOrder level
                        return $data['showOrder'];