Huge rewrite of default parameters, ext-network continued:
[mailer.git] / inc / pool / pool-bonus.php
index 66c350fdf146f561849b0d10a445da6b50d3522f..602820c88c6109769a1043b948ede3ed7bf77626 100644 (file)
@@ -130,7 +130,7 @@ if ($GLOBALS['pool_cnt'] < getConfig('max_send')) {
                                                } // END - if
 
                                                // Do we have send maximum mails?
-                                               if (($GLOBALS['pool_cnt'] >= getConfig('max_send')) || (countSelection($dummy) == 0)) {
+                                               if (($GLOBALS['pool_cnt'] >= getConfig('max_send')) || (countSelection($dummy) == '0')) {
                                                        // Yes, we have
                                                        //* DEBUG: */ print("*EXIT/L:".__LINE__."<br />");
                                                        break;
@@ -150,7 +150,7 @@ if ($GLOBALS['pool_cnt'] < getConfig('max_send')) {
 
                        // Close sending system
                        //* DEBUG: */ print("-L:".__LINE__.'/'.countSelection($dummy)."-<br />");
-                       if (countSelection($dummy) == 0) {
+                       if (countSelection($dummy) == '0') {
                                // Queue reached!
                                SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_bonus` SET `data_type`='SEND', `target_send`=0, `receivers`='' WHERE `id`=%s LIMIT 1",
                                array(bigintval($DATA['id'])), __FILE__, __LINE__);