X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Ffilter-functions.php;h=e96ab005b547a10040be3c33188d53265b51db20;hp=e65b789167c411a17bd3fc2165084f7eda160ac6;hb=01c643fbb3dabb7953a6e9646113eb5742ebe3be;hpb=7fabfadce30a7bea7ce3ad1f1e2e7e5e616f2669 diff --git a/inc/filter-functions.php b/inc/filter-functions.php index e65b789167..e96ab005b5 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 } @@ -218,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