More rewrites, and output-mode fixed (we should documentate this)
[mailer.git] / inc / pool / pool-user.php
index f5afc02e4cc8d043291fb4029c9f566a64a89e84..9ddd52256629c457dc6da8900197218251cd4e82 100644 (file)
@@ -61,7 +61,7 @@ if (isExtensionActive('html_mail')) {
 }
 
 // Reset variables
-$cnt2 = 0; $lastSentId = 0; $cnt_back = array('0'); $pointsBack = array('0');
+$cnt2 = 0; $lastSentId = 0; $cnt_back = array(0); $pointsBack = array(0);
 if (SQL_NUMROWS($result_main) > 0) {
        // Parse all mails
        while ($DATA = SQL_FETCHARRAY($result_main, 0, false)) {
@@ -84,7 +84,7 @@ if (SQL_NUMROWS($result_main) > 0) {
                                $RECEIVERS = array($DATA['receivers']);
                        } else {
                                // No users left
-                               $RECEIVERS = array('0');
+                               $RECEIVERS = array(0);
                        }
                        $dummy = $RECEIVERS;
 
@@ -258,7 +258,7 @@ if (SQL_NUMROWS($result_main) > 0) {
                                        SQL_FREERESULT($result_stats);
                                } else {
                                        // User does not exists so we have add the sender's points back to sender's account
-                                       if (($RECEIVERS['id'] == '0') || (empty($RECEIVERS['id']))) {
+                                       if (($RECEIVERS['id'] == 0) || (empty($RECEIVERS['id']))) {
                                                // List was empty
                                                SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_pool` SET `data_type`='SEND' WHERE `id`=%s LIMIT 1",
                                                        array(bigintval($DATA['id'])), __FILE__, __LINE__);