]> git.mxchange.org Git - mailer.git/blobdiff - inc/filters.php
Even more fixes for SQL problems :-(
[mailer.git] / inc / filters.php
index 424fe9f1048fe3fb6e7ef46971215bb7a7a2799a..fa28dba40068e882bdf918aab32727d3806a4327 100644 (file)
@@ -107,7 +107,7 @@ function FILTER_FLUSH_FILTERS () {
        } // END - if
 
        // Shall we update usage counters (ONLY FOR DEBUGGING!)
-       if ((isExtensionInstalledAndNewer('sql_patches', '0.6.0')) && (getConfig('update_filter_usage') == 'Y')) {
+       if ((isExtensionInstalledAndNewer('sql_patches', '0.6.0')) && (isConfigEntrySet('update_filter_usage')) && (getConfig('update_filter_usage') == 'Y')) {
                // Update all counters
                foreach ($GLOBALS['cache_array']['filter']['counter'] as $filterName => $filterArray) {
                        // Walk through all filters