]> git.mxchange.org Git - mailer.git/blobdiff - inc/wrapper-functions.php
Fixes
[mailer.git] / inc / wrapper-functions.php
index e3f992d0be3bb609554533671b21c8e6637116db..a41534abc911d656040b2523d6f9ec9c7f9676fe 100644 (file)
@@ -1650,12 +1650,24 @@ function isWhatTitleEnabled () {
        return $GLOBALS[__FUNCTION__];
 }
 
+// "Getter" for internal_stats
+function getInternalStats () {
+       // Is there cache?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // Determine it
+               $GLOBALS[__FUNCTION__] = getConfig('internal_stats');
+       } // END - if
+
+       // Return cache
+       return $GLOBALS[__FUNCTION__];
+}
+
 // Checks whether stats are enabled
 function ifInternalStatsEnabled () {
        // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
-               // Then determine it
-               $GLOBALS[__FUNCTION__] = ((isExtensionInstalledAndNewer('other', '0.2.6')) && (getInternalStats() == 'Y'));
+               // Then determine it, do not add isExtensionInstalledAndNewer() here as it breaks very first SQL query
+               $GLOBALS[__FUNCTION__] = (getInternalStats() == 'Y');
        } // END - if
 
        // Return cached value