debug_report_bug() was to 'hard' here.
authorRoland Häder <roland@mxchange.org>
Thu, 27 Aug 2009 00:48:07 +0000 (00:48 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 27 Aug 2009 00:48:07 +0000 (00:48 +0000)
inc/filters.php

index 39d86d1..6457c4b 100644 (file)
@@ -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