]> git.mxchange.org Git - mailer.git/blobdiff - inc/wrapper-functions.php
Further fixes for all resets
[mailer.git] / inc / wrapper-functions.php
index a41534abc911d656040b2523d6f9ec9c7f9676fe..31c5e3eea50803a77b2a133e083bba972510f90c 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -1667,7 +1667,7 @@ function ifInternalStatsEnabled () {
        // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Then determine it, do not add isExtensionInstalledAndNewer() here as it breaks very first SQL query
-               $GLOBALS[__FUNCTION__] = (getInternalStats() == 'Y');
+               $GLOBALS[__FUNCTION__] = ((isConfigEntrySet('internal_stats')) && (getInternalStats() == 'Y'));
        } // END - if
 
        // Return cached value