// Init add
$add = '';
if (isExtensionINstalledAndNewer('sql_patches', '0.6.0')) {
- $add = ", `filter_counter`";
+ $add = ',`filter_counter`';
} // END - if
// Load all filters
$result = SQL_QUERY('SELECT
- `filter_name`,`filter_function`,`filter_active`' . $add . '
+ `filter_name`,
+ `filter_function`,
+ `filter_active`
+ ' . $add . '
FROM
`{?_MYSQL_PREFIX?}_filters`
ORDER BY
//* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Running: name=' . $filterName . ',func=' . $filterFunction . ',active=' . $active);
// Is the filter active or newly added??
- if (($active == 'Y') || ($active == 'A') || ((in_array($filterName, array('shutdown','extension_remove','post_extension_run_sql'))) && ($active == 'R'))) {
+ if (($active == 'Y') || ($active == 'A') || ((in_array($filterName, array('shutdown', 'extension_remove', 'post_extension_run_sql'))) && ($active == 'R'))) {
// Is this filter there?
if (!function_exists($filterFunction)) {
// Should be fixed