]> git.mxchange.org Git - mailer.git/blobdiff - inc/stats-functions.php
Filter support added to template engine, functions renamed
[mailer.git] / inc / stats-functions.php
index f22bc6300e373dc1b0c7087c065903fbecd6eb29..931e40b22b27c6e0d6f4db05d26964c6751822aa 100644 (file)
@@ -162,7 +162,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 +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