]> git.mxchange.org Git - mailer.git/blobdiff - inc/stats-functions.php
Heacy rewrite/cleanup:
[mailer.git] / inc / stats-functions.php
index db168776c5361ae58b34e8f73d957cf28af7e121..a5ab7b12a164704e9636657beaf68c8849999d11 100644 (file)
@@ -158,11 +158,11 @@ function writeStatsTable () {
        if (!isSqlLinkUp()) return FALSE;
 
        // Empty the table first
-       sqlQueryEscaped("TRUNCATE `{?_MYSQL_PREFIX?}_stats_%s`",
+       sqlQueryEscaped('TRUNCATE `{?_MYSQL_PREFIX?}_stats_%s`',
                array(generateDateTime(time(), '6')), __FUNCTION__, __LINE__);
 
        // Begin the SQL command
-       $sql = sprintf("REPLACE INTO `{?_MYSQL_PREFIX?}_stats_%s` (`stats_entry`, `stats_value`) VALUES ",
+       $sql = sprintf('REPLACE INTO `{?_MYSQL_PREFIX?}_stats_%s` (`stats_entry`, `stats_value`) VALUES ',
                generateDateTime(time(), '6'));
 
        // Add all entries to the final query
@@ -177,7 +177,7 @@ function writeStatsTable () {
 // Filter for flushing statistics
 function FILTER_FLUSH_STATS () {
        // Now do we have stats?
-       if ((isset($GLOBALS['stats'])) && (!isInstallationPhase()) && (ifInternalStatsEnabled())) {
+       if ((isset($GLOBALS['stats'])) && (!isInstaller()) && (ifInternalStatsEnabled())) {
                // Write statistics to temporary table
                writeStatsTable();