X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Ffilter-functions.php;h=a894e0e77c455b11a8c72b60b5c3ef9963fd128d;hb=b94eb8bef8cb5494be1b6daef77718dc0eb91f8b;hp=1924031205bfac306f9d4272a8ab69c647502896;hpb=48ba551f2064ac7983804b9edef4af21bc23c534;p=mailer.git diff --git a/inc/filter-functions.php b/inc/filter-functions.php index 1924031205..a894e0e77c 100644 --- a/inc/filter-functions.php +++ b/inc/filter-functions.php @@ -59,12 +59,15 @@ function initFilterSystem () { // 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 @@ -282,7 +285,7 @@ function runFilterChain ($filterName, $filterData = NULL) { //* 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