From 19967f81fccfca18639737f9425fd145468d2778 Mon Sep 17 00:00:00 2001
From: =?utf8?q?Roland=20H=C3=A4der?= <roland@mxchange.org>
Date: Thu, 26 Nov 2009 17:21:46 +0000
Subject: [PATCH] Fix for not found filters

---
 inc/extensions/ext-network.php |  4 ++--
 inc/filter-functions.php       | 12 ++++++------
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/inc/extensions/ext-network.php b/inc/extensions/ext-network.php
index 690c5324a7..1635a7c6c7 100644
--- a/inc/extensions/ext-network.php
+++ b/inc/extensions/ext-network.php
@@ -79,7 +79,7 @@ PRIMARY KEY (`network_id`)
 `network_type_banner_url` VARCHAR(255) NOT NULL DEFAULT '',
 UNIQUE `provider_type` (`network_id`,`network_type_handle`),
 PRIMARY KEY (`network_type_id`)
-) TYPE={?_TABLE_TYPE?} COMMENT='Types provideable by networks. ONLY FILL OUT WITH PROPER idEA!'");
+) TYPE={?_TABLE_TYPE?} COMMENT='Types provideable by networks'");
 
 		// HTTP parameters (names) for URLs
 		addExtensionSql('DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_network_request_params`');
@@ -91,7 +91,7 @@ PRIMARY KEY (`network_type_id`)
 `request_param_min_payment` VARCHAR(10) NOT NULL DEFAULT 'verguetung',
 `request_param_allow_erotic` VARCHAR(10) NOT NULL DEFAULT 'erotik',
 PRIMARY KEY (`network_type_id`)
-) TYPE={?_TABLE_TYPE?} COMMENT='Request parameters for GET/POST request ONLY FILL OUT WITH PROPER idEA!'");
+) TYPE={?_TABLE_TYPE?} COMMENT='Request parameters for GET/POST request'");
 
 		// Error status codes
 		addExtensionSql('DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_network_type_codes`');
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 <strong>' . $filterName . '</strong> 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;
-- 
2.39.5