]> git.mxchange.org Git - mailer.git/blobdiff - inc/pool/pool-user.php
Naming convention applied: is outdated, use (not shortended word), fixed missing...
[mailer.git] / inc / pool / pool-user.php
index 35797ccffa3fba3ae373b4c33f66f796f91fdfbc..5ac55c5946c891e3680b287cb2ae0b1c9602f1da 100644 (file)
@@ -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