Introduced new wrapper functions to make the code more readable, new extension ext...
[mailer.git] / inc / pool / pool-bonus.php
index 0787499781074d5f8224850a9426b5185c07a7ff..d904d52758b135fc7c2b0b800601fac29dea639c 100644 (file)
@@ -131,7 +131,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;
@@ -151,7 +151,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__);