]> git.mxchange.org Git - mailer.git/blobdiff - inc/pool/pool-user.php
Again better check
[mailer.git] / inc / pool / pool-user.php
index 9fe3822ada72dd86be1c68122705393a3dce5037..83032754aaa984f6f3b02368d5040088563817b5 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -60,8 +60,16 @@ if (isExtensionActive('html_mail')) {
 
 // Main query
 $result_main = SQL_QUERY("SELECT
-       `id`,`sender` AS `sender_userid`,`subject`,`text`,`receivers`,
-       `payment_id`,`timestamp`,`url`,`target_send`,`cat_id`
+       `id`,
+       `sender` AS `sender_userid`,
+       `subject`,
+       `text`,
+       `receivers`,
+       `payment_id`,
+       `timestamp`,
+       `url`,
+       `target_send`,
+       `cat_id`
        ".$HTML."
 FROM
        `{?_MYSQL_PREFIX?}_pool`
@@ -78,7 +86,7 @@ $pointsBack = array(0);
 
 if (!SQL_HASZERONUMS($result_main)) {
        // Parse all mails
-       while ($mailData = SQL_FETCHARRAY($result_main, 0, false)) {
+       while ($mailData = SQL_FETCHARRAY($result_main)) {
                // Set mail order as 'active'. That means it will be sent out
                SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_pool` SET `data_type`='ACTIVE' WHERE `id`=%s AND `data_type`='NEW' LIMIT 1",
                        array($mailData['id']), __FILE__, __LINE__);