]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-guest_add.php
Even more fixes/rewrites due to changed config entries
[mailer.git] / inc / modules / admin / what-guest_add.php
index 1728bdd49809636cb9b9bb9f6b49c96aefed4e8c..d86210f5319ef5c7f1b4e9442c7f5405f596f993 100644 (file)
@@ -18,6 +18,7 @@
  * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -63,7 +64,7 @@ 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)) {
@@ -111,7 +112,7 @@ WHERE
        `what` IS NOT NULL
 ORDER BY `sort` ASC",
                                array($value_main), __FILE__, __LINE__);
-                       if (SQL_NUMROWS($result) > 0) {
+                       if (!SQL_HASZERONUMS($result)) {
                                // Initialize arrays
                                $menus[$value_main] = array();
                                $titles[$value_main] = array();
@@ -174,8 +175,8 @@ ORDER BY `sort` ASC",
 
        // Prepare selections for template
        $content['below_selection']  = $OUT;
-       $content['what_selection']   = adminAddMenuSelectionBox('member', 'what'  , 'name');
-       $content['action_selection'] = adminAddMenuSelectionBox('member', 'action', 'menu');
+       $content['what_selection']   = adminAddMenuSelectionBox('guest', 'what'  , 'name');
+       $content['action_selection'] = adminAddMenuSelectionBox('guest', 'action', 'menu');
 
        // Display form
        loadTemplate('admin_guest_add', false, $content);
@@ -201,10 +202,10 @@ ORDER BY `sort` ASC",
                                postRequestParameter('active'),
                        ), __FILE__, __LINE__);
        }
-       loadTemplate('admin_settings_saved', false, getMessage('SETTINGS_SAVED'));
+       loadTemplate('admin_settings_saved', false, '{--SETTINGS_SAVED--}');
 } else {
        // Demo mode!
-       loadTemplate('admin_settings_saved', false, getMessage('SETTINGS_NOT_SAVED'));
+       loadTemplate('admin_settings_saved', false, '{--SETTINGS_NOT_SAVED--}');
 }
 
 // [EOF]