mirror of
https://github.com/e107inc/e107.git
synced 2025-08-31 18:11:56 +02:00
Fixes #2694 - consistency for news items check in months_menu and blogcalender_menu
This commit is contained in:
@@ -87,7 +87,7 @@ if(false === $cached)
|
||||
$month_links = array();
|
||||
|
||||
$sql->db_Mark_Time('News months menu');
|
||||
if(!$sql->select("news", "news_id, news_datestamp", "news_class IN (".USERCLASS_LIST.") AND news_datestamp > ".intval($start)." AND news_datestamp < ".intval($end)." ORDER BY news_datestamp DESC"))
|
||||
if(!$sql->select("news", "news_id, news_datestamp", "news_class IN (".USERCLASS_LIST.") AND (FIND_IN_SET('0', news_render_type) OR FIND_IN_SET(1, news_render_type)) AND news_datestamp > ".intval($start)." AND news_datestamp < ".intval($end)." ORDER BY news_datestamp DESC"))
|
||||
{
|
||||
e107::getCache()->set($cString, '');
|
||||
return '';
|
||||
@@ -151,4 +151,4 @@ if(false === $cached)
|
||||
e107::getCache()->set($cString, $cached);
|
||||
}
|
||||
|
||||
echo $cached;
|
||||
echo $cached;
|
Reference in New Issue
Block a user