X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fstats-functions.php;h=931e40b22b27c6e0d6f4db05d26964c6751822aa;hp=baa0b130b1f0f24714685c12fa1bc650fba7308a;hb=f51be78aa682f22b29fcfcfcd4331d6b3b47a552;hpb=3ec2d6f962c617af33b0e95e22eb414312e3ffb6 diff --git a/inc/stats-functions.php b/inc/stats-functions.php index baa0b130b1..931e40b22b 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 +173,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()) && (getConfig('STATS_ENABLED') == 'Y')) { // Write statistics to temporary table writeStatsTable(); } // END - if