From 9cbad79626b30561fa4b9ecf24054b2206ce1573 Mon Sep 17 00:00:00 2001 From: quix0r Date: Wed, 23 Jan 2013 14:38:15 +0000 Subject: [PATCH] Configuration 'internal_stats' is provided by ext-other and may not always be available --- inc/wrapper-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5