]> git.mxchange.org Git - mailer.git/commitdiff
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 39d86d19f17108a74c9bdc95e78671105882019b..6457c4b0b8c49e769624ec0bbbd56dc87a47a82c 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