From: Roland Häder Date: Thu, 27 Aug 2009 00:48:07 +0000 (+0000) Subject: debug_report_bug() was to 'hard' here. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2bacfb93cb88e31e321466f7e9c0747ea6655a6a;p=mailer.git debug_report_bug() was to 'hard' here. --- 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