X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fstats-functions.php;h=79cc70549b335fac7581673e44d509583efabf57;hp=44256ff3dbb444876695c733154cf16ad56e0cfc;hb=4b7f401f2a4680ae46ca41c57f749cfe35163660;hpb=3e2db2082694ee086a26408080dd9eee5f39b81a diff --git a/inc/stats-functions.php b/inc/stats-functions.php index 44256ff3db..79cc70549b 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 @@ -173,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()) && (getConfig('STATS_ENABLED') == 'Y')) { // Write statistics to temporary table writeStatsTable(); } // END - if