// 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);
// Only remove if we have at least 2 entries from same menu
if ($entries > 1) {
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
}