X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fpool%2Fpool-bonus.php;h=d904d52758b135fc7c2b0b800601fac29dea639c;hb=c85ddc06cc16f2cd38ddd7d4c142a3f578bbab69;hp=6baa5b7705d1b567bb09f23b13274ebc5eb00802;hpb=3fc95231ba85cc8c292b81bf502d4d7fab85ca8b;p=mailer.git
diff --git a/inc/pool/pool-bonus.php b/inc/pool/pool-bonus.php
index 6baa5b7705..d904d52758 100644
--- a/inc/pool/pool-bonus.php
+++ b/inc/pool/pool-bonus.php
@@ -18,6 +18,7 @@
* svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -71,7 +72,7 @@ if ($GLOBALS['pool_cnt'] < getConfig('max_send')) {
array(bigintval($DATA['id'])), __FILE__, __LINE__);
// "Explode" all receivers into an array
- if (ereg(';', $DATA['receivers'])) {
+ if (isInString(';', $DATA['receivers'])) {
// There's more than one receiver in the list...
$receiverS = explode(';', $DATA['receivers']);
} elseif (!empty($DATA['points'])) {
@@ -130,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__."
");
break;
@@ -150,7 +151,7 @@ if ($GLOBALS['pool_cnt'] < getConfig('max_send')) {
// Close sending system
//* DEBUG: */ print("-L:".__LINE__.'/'.countSelection($dummy)."-
");
- 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__);