X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fstats-functions.php;h=3190a6d9ab3388885ebb67dfaa2a8fa7d3b28a74;hb=074767f2ad1cfd011221dec75eda51a6eb74ade9;hp=5d8c441f48a860fed2ca0838cc7b5ac0cec9d25d;hpb=38617e046a3f69548d77e7f079ab2bf58fd6bd8c;p=mailer.git diff --git a/inc/stats-functions.php b/inc/stats-functions.php index 5d8c441f48..3190a6d9ab 100644 --- a/inc/stats-functions.php +++ b/inc/stats-functions.php @@ -66,7 +66,7 @@ function isStatsEntrySet ($entry) { // Increments a statistics entry function incrementStatsEntry ($entry, $amount=1) { // Do we have stats enabled? - if (getConfig('stats_enabled') != 'Y') return; + if (!ifStatsAreEnabled()) return; // Is it there? if (isStatsEntrySet($entry)) { @@ -182,19 +182,5 @@ function FILTER_FLUSH_STATS () { } // END - if } -// Check wether stats are enabled -function ifStatsAreEnabled () { - logDebugMessage(__FUNCTION__, __LINE__, 'CALLED!'); - - // Do we have cache? - if (!isset($GLOBALS['stats_enabled'])) { - // Then determine it - $GLOBALS['stats_enabled'] = (getConfig('stats_enabled') == 'Y'); - } // END - if - - // Return cached value - return $GLOBALS['stats_enabled']; -} - // [EOF] ?>