X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fstats-functions.php;h=a5ab7b12a164704e9636657beaf68c8849999d11;hp=db168776c5361ae58b34e8f73d957cf28af7e121;hb=eb3e924768678719afc1bfaffb69354c407daa5b;hpb=155492a5b96cec674846973a8524238b0365a848 diff --git a/inc/stats-functions.php b/inc/stats-functions.php index db168776c5..a5ab7b12a1 100644 --- a/inc/stats-functions.php +++ b/inc/stats-functions.php @@ -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();