diff --git a/e107_handlers/news_class.php b/e107_handlers/news_class.php index 2a2c309c7..e48decd6b 100644 --- a/e107_handlers/news_class.php +++ b/e107_handlers/news_class.php @@ -669,7 +669,7 @@ class e_news_tree extends e_front_tree_model $nobody_regexp = "'(^|,)(".str_replace(",", "|", e_UC_NOBODY).")(,|$)'"; $time = time(); - $where = ($where ? ' AND ' : '')."n.news_start < {$time} AND (n.news_end=0 || n.news_end>{$time}) + $where .= ($where ? ' AND ' : '')."n.news_start < {$time} AND (n.news_end=0 || n.news_end>{$time}) AND n.news_class REGEXP '".e_CLASS_REGEXP."' AND NOT (n.news_class REGEXP ".$nobody_regexp.") ";