X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-mem_add.php;h=682dcdbd20981bca3a5f4a718ccad88818e264b0;hp=102e4ca1bb1211063e055e1aa58ba63225c61b91;hb=0b26d5d64d95a8001bc8ba27a2d27ca4888d5d80;hpb=f2aeaab0cd313b2eeb151642455ed558f6b186dc diff --git a/inc/modules/admin/what-mem_add.php b/inc/modules/admin/what-mem_add.php index 102e4ca1bb..682dcdbd20 100644 --- a/inc/modules/admin/what-mem_add.php +++ b/inc/modules/admin/what-mem_add.php @@ -60,7 +60,7 @@ if (!isFormSent()) { // Get all available main menus $result = SQL_QUERY("SELECT `action`, `title`, `sort` FROM `{?_MYSQL_PREFIX?}_member_menu` WHERE (`what`='' OR `what` IS NULL) ORDER BY `sort` ASC", __FILE__, __LINE__); - if (SQL_NUMROWS($result) > 0) { + if (!SQL_HASZERONUMS($result)) { // Read menu structure // @TODO Cant this be rewritten? while ($content = SQL_FETCHARRAY($result)) { @@ -101,7 +101,7 @@ if (!isFormSent()) { foreach ($menus as $key_main => $value_main) { $result = SQL_QUERY_ESC("SELECT what, title, sort FROM `{?_MYSQL_PREFIX?}_member_menu` WHERE `action`='%s' AND `what` != '' ORDER BY `sort`", array($value_main), __FILE__, __LINE__); - if (SQL_NUMROWS($result) > 0) { + if (!SQL_HASZERONUMS($result)) { // Initialize arrays $menus[$value_main] = array(); $titles[$value_main] = array(); @@ -143,24 +143,24 @@ if (!isFormSent()) { } // END - foreach } // END - if - $OUT = " + '; foreach ($below as $key => $m) { if (is_array($m)) { foreach ($m as $key2 => $m2) { - $OUT .= " \n"; + $OUT .= ''; } // END - foreach } else { - $OUT .= " \n"; + $OUT .= ''; } } - $OUT .= ""; + $OUT .= ''; // Prepare selection boxes for template $content['below_selection'] = $OUT; @@ -168,7 +168,7 @@ if (!isFormSent()) { $content['action_selection'] = adminAddMenuSelectionBox('member', 'action', 'menu'); // Display form - loadTemplate('admin_member_add', false, $content); + loadTemplate('admin_add_member_menu', false, $content); } elseif (!isDemoModeActive()) { // Insert new menu entry if (isPostRequestParameterSet('menu')) {