X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Ffilter-functions.php;h=d096c8e43bb0c1fe74a1bfb1fcc021254a44b247;hb=8ffce31d9ae39991adf913512d8f5db24fda0b2a;hp=b797f90f15130559594b1710859f0950c6384d43;hpb=b964523185fff36755ab2bc1e6fbabe4ffd554f8;p=mailer.git diff --git a/inc/filter-functions.php b/inc/filter-functions.php index b797f90f15..d096c8e43b 100644 --- a/inc/filter-functions.php +++ b/inc/filter-functions.php @@ -247,12 +247,12 @@ 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])) && (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!'); - //* Only for tracking: */ } - /* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Filter chain ' . $filterName . ' not found!'); + if (!isset($GLOBALS['cache_array']['filter']['chains'][$filterName])) { + // Log not found filters in debug-mode + if (isDebugModeEnabled()) { + // Log it away... + logDebugMessage(__FUNCTION__, __LINE__, 'Filter chain ' . $filterName . ' not found!'); + } // END - if // Abort here and return content return $data;