From 7a62273b50da20cd0535d0901e05f6282b0cfc70 Mon Sep 17 00:00:00 2001 From: Moc Date: Sun, 6 Apr 2014 00:43:44 +0200 Subject: [PATCH] Fixes #551 --- e107_handlers/news_class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.") ";