}
// 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)) {
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')) {
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'];
} // END - if
// Count up
- $cnt_back[$DATA['sender']]++;
+ $count_back[$DATA['sender']]++;
}
// Remove entry from list