]> git.mxchange.org Git - mailer.git/blobdiff - inc/wrapper-functions.php
Configuration 'internal_stats' is provided by ext-other and may not always be available
[mailer.git] / 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