// 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