X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Ffix_menu.php;h=994ecfc831e317c0a6bddf03806769eda498d816;hb=34297125f617f854d2cc009d3cc4f16b6581a1f5;hp=31d3f96ff73363aabc217aadc84827305b96dbdf;hpb=09f5758c42a33a56bdd461c946ffe759a59c54aa;p=mailer.git diff --git a/inc/fix_menu.php b/inc/fix_menu.php index 31d3f96ff7..994ecfc831 100644 --- a/inc/fix_menu.php +++ b/inc/fix_menu.php @@ -14,8 +14,6 @@ * $Date:: $ * * $Tag:: 0.2.1-FINAL $ * * $Author:: $ * - * Needs to be in all Files and every File needs "svn propset * - * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * * Copyright (c) 2009, 2010 by Mailer Developer Team * @@ -66,7 +64,7 @@ foreach (array('guest','member','admin') as $menu) { // Sub menu $entries = countSumTotalData($entry['action'], $menu . '_menu', 'action', 'action', true, sprintf(" AND `what`='%s'", $entry['what'])); } - //* DEBUG: */ print 'menu='.$menu.',action='.$entry['action'].',what='.$entry['what'].',entries='.$entries.'
'; + //* DEBUG: */ debugOutput('menu='.$menu.',action='.$entry['action'].',what='.$entry['what'].',entries='.$entries); // Only remove if we have at least 2 entries from same menu if ($entries > 1) { @@ -74,11 +72,20 @@ foreach (array('guest','member','admin') as $menu) { if (is_null($entry['what'])) { // Main menu is double SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_%s_menu` WHERE `action`='%s' AND `what` IS NULL LIMIT %s", - array($menu, $entry['action'], ($entries - 1)), __FILE__, __LINE__); + array( + $menu, + $entry['action'], + ($entries - 1) + ), __FILE__, __LINE__); } else { // Sub menu is double SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_%s_menu` WHERE `action`='%s' AND `what`='%s' LIMIT %s", - array($menu, $entry['action'], $entry['what'], ($entries - 1)), __FILE__, __LINE__); + array( + $menu, + $entry['action'], + $entry['what'], + ($entries - 1) + ), __FILE__, __LINE__); } } // END - if }