A lot while() conditions rewritten to SQL_FETCHARRAY(), see bug #107, @TODO tags...
[mailer.git] / inc / modules / admin / what-list_links.php
index 242a00c..330c124 100644 (file)
@@ -84,13 +84,16 @@ if (REQUEST_ISSET_GET(('uid'))) {
                                // Display message
                                LOAD_TEMPLATE("admin_settings_saved", false, getMessage('ADMIN_LINKS_DELETED'));
                        } else {
+                               // Init variables
+                               $OUT = ""; $SW = 2;
+
                                // List all unconfirmed mails
-                               $SW = 2; $OUT = "";
+                               // @TODO Find a way to rewrite this. See some lines above for different queries
                                while (list($id, $id2, $type) = SQL_FETCHROW($result)) {
                                        // Initializes some variables
                                        $cat = "";
                                        $DATA = "";
-                                       $PROBLEM = GENERAL_MAIL_PROBLEM;
+                                       $PROBLEM = getMessage('GENERAL_MAIL_PROBLEM');
                                        $result_data = false; // Closes Bug #58
 
                                        // Load data from stats table...