]> git.mxchange.org Git - mailer.git/blobdiff - inc/pool-update.php
Fix for undefined variable cnt in mails sending pool (Closed: #0000003)
[mailer.git] / inc / pool-update.php
index f54f84bf4d95053040c7be1e4920084ac6548d2d..b2fd7c8ca84b45e89504b5f213f927173fef4b41 100644 (file)
@@ -43,11 +43,8 @@ if (defined('__DAILY_RESET')) {
        return false;
 } // END - if
 
-// Set some global variables
-global $cnt, $msg;
-
-// Init counter and message
-$cnt = 0; $msg = "";
+// Init counter
+$GLOBALS['pool_cnt'] = 0;
 
 // Load more cache includes
 $INC_POOL = GET_DIR_AS_ARRAY(PATH."inc/pool/", "pool-");
@@ -55,8 +52,8 @@ $INC_POOL = GET_DIR_AS_ARRAY(PATH."inc/pool/", "pool-");
 // Run the filter
 RUN_FILTER('load_includes');
 
-// Remove message (IMPORTANT!)
-unset($msg);
+// Remove counter again
+unset($GLOBALS['pool_cnt']);
 
 //
 ?>