]> git.mxchange.org Git - mailer.git/commitdiff
Configuration 'internal_stats' is provided by ext-other and may not always be available
authorRoland Häder <roland@mxchange.org>
Wed, 23 Jan 2013 14:38:15 +0000 (14:38 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 23 Jan 2013 14:38:15 +0000 (14:38 +0000)
inc/wrapper-functions.php

index a41534abc911d656040b2523d6f9ec9c7f9676fe..1a9c6847a5f36054484ab583221b6739cdb151f4 100644 (file)
@@ -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