Rewrites/fixes for while() loops with merge_array() and SQL_FETCHARRAY() usage
[mailer.git] / inc / mails / beg_mails.php
index 7712f5fb574aa6ca74659634c337bd8fa02950a4..b9a65e462f446f22abd062ef175723a3f375a6a2 100644 (file)
@@ -103,7 +103,10 @@ if (!empty($sql)) {
                $receiver = ''; $userids = array();
 
                // Okay lets notify all users!
-               while ($content = merge_array($content, SQL_FETCHARRAY($result_main))) {
+               while ($row = SQL_FETCHARRAY($result_main)) {
+                       // Merge arrays
+                       $content = merge_array($content, $row);
+
                        // Update account
                        SQL_QUERY_ESC("UPDATE
        `{?_MYSQL_PREFIX?}_user_data`