// Sub menu
$entries = countSumTotalData($entry['action'], $menu . '_menu', 'action', 'action', true, sprintf(" AND `what`='%s'", $entry['what']));
}
// 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.'<br />';
+ //* DEBUG: */ debugOutput('menu='.$menu.',action='.$entry['action'].',what='.$entry['what'].',entries='.$entries);
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",
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__);
- array($menu, $entry['action'], $entry['what'], ($entries - 1)), __FILE__, __LINE__);
+ array(
+ $menu,
+ $entry['action'],
+ $entry['what'],
+ ($entries - 1)
+ ), __FILE__, __LINE__);