Added ability to allow empty passwords, if the user does so, a random password will...
[mailer.git] / inc / pool / pool-bonus.php
index 139f1f5e7cfb21658dc6fcc888ea60cb4ea5e482..ef5fb8e6961d953527159ae74dc14922b54d488c 100644 (file)
@@ -61,7 +61,7 @@ if ($GLOBALS['pool_cnt'] < getConfig('max_send')) {
                $result_bonus = SQL_QUERY("SELECT `id`, `subject`, `text`, `receivers`, `points`, `time`, `data_type`, `timestamp`, `url`, `cat_id`, `target_send` FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `data_type`='NEW' ORDER BY `timestamp` DESC", __FILE__, __LINE__);
        }
 
-       if (SQL_NUMROWS($result_bonus) > 0) {
+       if (!SQL_HASZERONUMS($result_bonus)) {
                // Send these mails away...
                $count2 = '';
                while ($DATA = SQL_FETCHARRAY($result_bonus)) {