X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-mem_add.php;h=1f4002f6d61a955d29cb98e065b803c68712329b;hp=ec086086ad2708faa7204d850bf98b7875af87b1;hb=7967841ac94cdcbd10b4d5c011a1e0a9982ec600;hpb=75ad748a68473ace540251427a74fb781b1145e9 diff --git a/inc/modules/admin/what-mem_add.php b/inc/modules/admin/what-mem_add.php index ec086086ad..1f4002f6d6 100644 --- a/inc/modules/admin/what-mem_add.php +++ b/inc/modules/admin/what-mem_add.php @@ -40,9 +40,6 @@ if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) } // Add desciption as navigation point ADD_DESCR("admin", basename(__FILE__)); -OUTPUT_HTML ("
"); - -OPEN_TABLE("100%", "admin_content admin_content_align", ""); // Check if the admin has entered title and what-php file name... if ((empty($_POST['title'])) && (isset($_POST['ok']))) @@ -56,7 +53,7 @@ if (!isset($_POST['ok'])) $menus = array(); $titles = array(); $below = array(); // Get all available main menus - $result = SQL_QUERY("SELECT action, title, sort FROM "._MYSQL_PREFIX."_member_menu WHERE what='' ORDER BY sort", __FILE__, __LINE__); + $result = SQL_QUERY("SELECT action, title, sort FROM "._MYSQL_PREFIX."_member_menu WHERE (what='' OR what IS NULL) ORDER BY sort", __FILE__, __LINE__); if (SQL_NUMROWS($result) > 0) { // Read menu structure @@ -211,6 +208,5 @@ VALUES('%s', '%s', '%s', '%s', '%s')", LOAD_TEMPLATE("admin_settings_saved", false, SETTINGS_NOT_SAVED); } -CLOSE_TABLE(); // ?>