X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Ffilter-functions.php;h=b797f90f15130559594b1710859f0950c6384d43;hb=05f2bbfff5c041bc126894e87ea979bd3df6eb25;hp=d76cad43ed1d8bc42b7c02d03ebe2e276f5311fb;hpb=7afdb8e56178524cfa8e1665d7a6db76aff3d125;p=mailer.git diff --git a/inc/filter-functions.php b/inc/filter-functions.php index d76cad43ed..b797f90f15 100644 --- a/inc/filter-functions.php +++ b/inc/filter-functions.php @@ -1,7 +1,7 @@ '; $GLOBALS['cache_array']['filter']['chains'][$filterName][$filterFunction] = 'A'; - $GLOBALS['cache_array']['filter']['counter'][$filterName][$filterFunction] = 0; + $GLOBALS['cache_array']['filter']['counter'][$filterName][$filterFunction] = '0'; } // END - if } @@ -219,7 +232,7 @@ function unregisterFilter ($filterName, $filterFunction, $force = false, $dry_ru // Is that filter there? if ((!isset($GLOBALS['cache_array']['filter']['chains'][$filterName][$filterFunction])) && ($force === false)) { // Not found, so abort here - addFatalMessage(__FUNCTION__, __LINE__, getMessage('FILTER_FAILED_NOT_REMOVED'), array($filterFunction, $filterName)); + addFatalMessage(__FUNCTION__, __LINE__, sprintf(getMessage('FILTER_FAILED_NOT_REMOVED'), $filterFunction, $filterName)); return false; } // END - if @@ -234,7 +247,7 @@ function unregisterFilter ($filterName, $filterFunction, $force = false, $dry_ru // "Runs" the given filters, data is optional and can be any type of data function runFilterChain ($filterName, $data = null) { // Is that filter chain there? - if (!isset($GLOBALS['cache_array']['filter']['chains'][$filterName])) { + if ((!isset($GLOBALS['cache_array']['filter']['chains'][$filterName])) && (isDebugModeEnabled())) { // We should find all these non-existing filter chains //* Only for tracking: */ if ($filterName != 'sql_admin_extra_data') { //* Only for tracking: */ debug_report_bug('Filter chain ' . $filterName . ' not found!');