From 2bacfb93cb88e31e321466f7e9c0747ea6655a6a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 27 Aug 2009 00:48:07 +0000 Subject: [PATCH] debug_report_bug() was to 'hard' here. --- inc/filters.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/inc/filters.php b/inc/filters.php index 39d86d19f1..6457c4b0b8 100644 --- a/inc/filters.php +++ b/inc/filters.php @@ -160,7 +160,7 @@ function registerFilter ($filterName, $filterFunction, $silentAbort = true, $for // Is that filter already there? if ((isset($GLOBALS['filters']['chains'][$filterName][$filterFunction])) && (!$force)) { // Then abort here - if (!$silentAbort) { + if ($silentAbort === false) { addFatalMessage(__FUNCTION__, __LINE__, getMessage('FILTER_FAILED_ALREADY_ADDED'), array($filterFunction, $filterName)); } // END - if @@ -209,7 +209,10 @@ function runFilterChain ($filterName, $data = null, $silentAbort = true) { // Is that filter chain there? if (!isset($GLOBALS['filters']['chains'][$filterName])) { // We should find all these non-existing filter chains - debug_report_bug('Filter chain '.$filterName.' not found!'); + DEBUG_LOG(__FUNCTION__, __LINE__, 'Filter chain ' . $filterName . ' not found!'); + + // Abort here + return false; } // END - if // Default return value -- 2.39.5