X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Ffilters.php;h=d0c4398d6e1a59ff10a69e6dacbc9aec030e9f50;hb=17bf2b3d87d31caef7b3de26d16a4b184a9bf975;hp=8d96ef26dab4d7c6d5ec625ff440f9ce83da6462;hpb=f26aab4a55972825a0d3ef9346c8c8dea8752b7b;p=mailer.git diff --git a/inc/filters.php b/inc/filters.php index 8d96ef26da..d0c4398d6e 100644 --- a/inc/filters.php +++ b/inc/filters.php @@ -68,11 +68,11 @@ function INIT_FILTER_SYSTEM () { // Load all saved filers if sql_patches is updated if (GET_EXT_VERSION("sql_patches") >= "0.5.9") { // Init add - $ADD = ""; - if (GET_EXT_VERSION("sql_patches") >= "0.6.0") $ADD = ", `filter_counter`"; + $add = ""; + if (GET_EXT_VERSION("sql_patches") >= "0.6.0") $add = ", `filter_counter`"; // Load all active filers - $result = SQL_QUERY("SELECT `filter_name`,`filter_function`,`filter_active`".$ADD." + $result = SQL_QUERY("SELECT `filter_name`,`filter_function`,`filter_active`".$add." FROM `{!_MYSQL_PREFIX!}_filters` ORDER BY `filter_id` ASC", __FUNCTION__, __LINE__); @@ -245,7 +245,7 @@ function FILTER_FLUSH_FILTERS () { INIT_SQLS(); // Are we installing? - if (isInstalling()) { + if ((isInstalling()) || (!isInstalled())) { // Then silently skip this filter return true; } // END - if