X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fstats-functions.php;h=79cc70549b335fac7581673e44d509583efabf57;hp=f22bc6300e373dc1b0c7087c065903fbecd6eb29;hb=4b7f401f2a4680ae46ca41c57f749cfe35163660;hpb=263a089d8a499e0e26d0af9e7aa7639f88b8ca60 diff --git a/inc/stats-functions.php b/inc/stats-functions.php index f22bc6300e..79cc70549b 100644 --- a/inc/stats-functions.php +++ b/inc/stats-functions.php @@ -18,6 +18,7 @@ * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * + * Copyright (c) 2009, 2010 by Mailer Developer Team * * For more information visit: http://www.mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -162,7 +163,7 @@ function writeStatsTable () { date('Ymd', time())); // Add all entries to the final query - foreach ($GLOBALS['stats'] as $entry=>$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