X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fstats-functions.php;h=3190a6d9ab3388885ebb67dfaa2a8fa7d3b28a74;hb=2710fcbafc1d3866e75cba4b96a5ca0457b9e327;hp=1e4b5dac22d7634abdd1ca86203bf1db3209ce2f;hpb=c18c5cdd55396078af1cd11a9da966ca8f16a3fe;p=mailer.git diff --git a/inc/stats-functions.php b/inc/stats-functions.php index 1e4b5dac22..3190a6d9ab 100644 --- a/inc/stats-functions.php +++ b/inc/stats-functions.php @@ -1,7 +1,7 @@ $value) { + foreach ($GLOBALS['stats'] as $entry => $value) { $sql .= sprintf("('%s', %s),", $entry, bigintval($value)); } // END - foreach @@ -161,7 +176,7 @@ function writeStatsTable () { // Filter for flushing statistics function FILTER_FLUSH_STATS () { // Now do we have stats? - if ((isset($GLOBALS['stats'])) && (getConfig('STATS_ENABLED') == 'Y')) { + if ((isset($GLOBALS['stats'])) && (!isInstallationPhase()) && (ifStatsAreEnabled())) { // Write statistics to temporary table writeStatsTable(); } // END - if