]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-mem_add.php
Obsoleted parameters to SQL_AFFECTED_ROWS() removed, OPEN_TABLE() and CLOSE_TABLE...
[mailer.git] / inc / modules / admin / what-mem_add.php
index 766509afde475af1206e3fb963f783bcab7ee3fd..1f4002f6d61a955d29cb98e065b803c68712329b 100644 (file)
@@ -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("</FONT><BR>");
-
-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();
 //
 ?>