]> git.mxchange.org Git - mailer.git/blobdiff - inc/stats-functions.php
Continued a bit:
[mailer.git] / inc / stats-functions.php
index db168776c5361ae58b34e8f73d957cf28af7e121..b4fd58326db00066c8d41ddd3f656c3b5b65d60a 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Auto-Loeschung von veralteten Mail-Links         *
  * -------------------------------------------------------------------- *
- * $Revision::                                                        $ *
- * $Date::                                                            $ *
- * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author::                                                          $ *
- * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2016 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -158,11 +153,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 +172,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();