X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fpool%2Fpool-user.php;h=5ac55c5946c891e3680b287cb2ae0b1c9602f1da;hp=35797ccffa3fba3ae373b4c33f66f796f91fdfbc;hb=682edce003a1a91f66fb8e2212d7fdb591379843;hpb=e523b69ecd6c7f37ae1cb36872537073b40c0e27 diff --git a/inc/pool/pool-user.php b/inc/pool/pool-user.php index 35797ccffa..5ac55c5946 100644 --- a/inc/pool/pool-user.php +++ b/inc/pool/pool-user.php @@ -60,7 +60,7 @@ if (isExtensionActive('html_mail')) { } // Reset variables -$cnt2 = '0'; $lastSentId = '0'; $cnt_back = array(0); $pointsBack = array(0); +$count2 = '0'; $lastSentId = '0'; $count_back = array(0); $pointsBack = array(0); if (!SQL_HASZERONUMS($result_main)) { // Parse all mails while ($DATA = SQL_FETCHARRAY($result_main, 0, false)) { @@ -199,7 +199,7 @@ if (!SQL_HASZERONUMS($result_main)) { array(bigintval($DATA['id'])), __FILE__, __LINE__); $lastSentId = $DATA['id']; $GLOBALS['pool_cnt'] = '0'; - $cnt2 += $GLOBALS['pool_cnt']; + $count2 += $GLOBALS['pool_cnt']; // Update mediadata if version is 0.0.4 or higher if (isExtensionInstalledAndNewer('mediadata', '0.0.4')) { @@ -212,7 +212,7 @@ if (!SQL_HASZERONUMS($result_main)) { break; } // Do we have send maximum mails? - elseif (($GLOBALS['pool_cnt'] >= getConfig('max_send')) || ($cnt2 >= getConfig('max_send'))) { + elseif (($GLOBALS['pool_cnt'] >= getConfig('max_send')) || ($count2 >= getConfig('max_send'))) { // There are some mails left to send for next round, so we reset the status back to NEW (=still not fully delivered) $add = ''; if ($GLOBALS['pool_cnt'] <= $DATA['target_send']) $add = ", target_send=target_send-".$GLOBALS['pool_cnt']; @@ -246,7 +246,7 @@ if (!SQL_HASZERONUMS($result_main)) { } // END - if // Count up - $cnt_back[$DATA['sender']]++; + $count_back[$DATA['sender']]++; } // Remove entry from list