X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fstats-functions.php;h=d863ccd068978f9052d150ad38dd368fa458bc36;hb=62d8f6d89c35bebe15b8f716a5629f14d95f3078;hp=1e4b5dac22d7634abdd1ca86203bf1db3209ce2f;hpb=c18c5cdd55396078af1cd11a9da966ca8f16a3fe;p=mailer.git diff --git a/inc/stats-functions.php b/inc/stats-functions.php index 1e4b5dac22..d863ccd068 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 +174,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