From 24462b1347471350179b20a64f91a864deeb1df0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= 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