X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmysql-manager.php;h=a50e4e23fa8707ca9bd448082fc1cd1a6363cb18;hp=726ddbd2053f115cc376782e439317c299957269;hb=96144a19af504a59b07ff39d378e7da1f6fcf240;hpb=102d8ff4dc03d13ba12cc5181da83f48feb7a4d6 diff --git a/inc/mysql-manager.php b/inc/mysql-manager.php index 726ddbd205..a50e4e23fa 100644 --- a/inc/mysql-manager.php +++ b/inc/mysql-manager.php @@ -426,8 +426,8 @@ function ADD_MENU ($mode, $act, $wht) { LOAD_TEMPLATE($mode . '_menu_title', false, $content); // Sub menu - $result_sub = SQL_QUERY_ESC("SELECT title AS sub_title, what AS sub_what FROM `{!_MYSQL_PREFIX!}_%s_menu` WHERE `action`='%s' AND `what` != '' AND `what` IS NOT NULL ".$AND." ORDER BY `sort`", - array($mode, $content['action']), __FUNCTION__, __LINE__); + $result_sub = SQL_QUERY_ESC("SELECT `title` AS sub_title, `what` AS sub_what FROM `{!_MYSQL_PREFIX!}_%s_menu` WHERE `action`='%s' AND `what` != '' AND `what` IS NOT NULL ".$AND." ORDER BY `sort`", + array($mode, $content['action']), __FUNCTION__, __LINE__); // Get number of rows $ctl = SQL_NUMROWS($result_sub); @@ -491,6 +491,8 @@ function ADD_MENU ($mode, $act, $wht) { } else { // This is a menu block... ;-) enableBlockMode(); + + // Load menu block $INC_BLOCK = sprintf("inc/modules/%s/action-%s.php", $mode, $content['action']); if (isFileReadable($INC_BLOCK)) { // Load include file