]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-repair_mmnu.php
Should not be loadInclude() here, we need to rewrite EXT_LOAD_MODE and EXT_VER here
[mailer.git] / inc / modules / admin / what-repair_mmnu.php
index c489100b49417fb0a77feca29fc8026b5dcf7a19..a6afa5cfdda68437823460d1774fd472597f3ac7 100644 (file)
@@ -56,7 +56,7 @@ while ($content = SQL_FETCHARRAY($result_fix)) {
 
        // Fix weight
        SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_member_menu` SET sort=%s WHERE `id`=%s LIMIT 1",
-               array($cnt, $content['id']), __FILE__, __LINE__);
+       array($cnt, $content['id']), __FILE__, __LINE__);
        $REP += SQL_AFFECTEDROWS();
 
        // Count one up
@@ -69,12 +69,12 @@ SQL_QUERY("UPDATE `{!_MYSQL_PREFIX!}_member_menu` SET sort='999' WHERE `action`=
 // Now sort every each menu
 foreach ($ACTIONS as $act) {
        $result_fix = SQL_QUERY_ESC("SELECT `id` FROM `{!_MYSQL_PREFIX!}_member_menu` WHERE `action`='%s' AND `what` != '' AND `what` IS NOT NULL ORDER BY `sort`",
-               array($act), __FILE__, __LINE__);
+       array($act), __FILE__, __LINE__);
        $cnt = 1;
        while ($content = SQL_FETCHARRAY($result_fix)) {
                // Fix weight
                SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_member_menu` SET sort=%s WHERE `id`=%s LIMIT 1",
-                       array($cnt, $content['id']), __FILE__, __LINE__);
+               array($cnt, $content['id']), __FILE__, __LINE__);
                $REP += SQL_AFFECTEDROWS();
 
                // Count one up