From: quix0r Date: Wed, 23 Jan 2013 14:38:15 +0000 (+0000) Subject: Configuration 'internal_stats' is provided by ext-other and may not always be available X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9cbad79626b30561fa4b9ecf24054b2206ce1573;p=mailer.git Configuration 'internal_stats' is provided by ext-other and may not always be available --- diff --git a/inc/wrapper-functions.php b/inc/wrapper-functions.php index a41534abc9..1a9c6847a5 100644 --- a/inc/wrapper-functions.php +++ b/inc/wrapper-functions.php @@ -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