mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 22:27:34 +02:00
Fixes #2694 - consistency for news items check in months_menu and blogcalender_menu
This commit is contained in:
@@ -111,7 +111,7 @@ if(false === $cached)
|
||||
$year_start = mktime(0, 0, 0, 1, 1, $req_year);
|
||||
$year_end = mktime(23, 59, 59, 12, 31, $req_year);
|
||||
|
||||
$sql->select("news", "news_id, news_datestamp", "news_class IN (".USERCLASS_LIST.") AND news_datestamp > ".intval($start)." AND news_datestamp < ".intval($end));
|
||||
$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));
|
||||
|
||||
$links = array();
|
||||
$months = array();
|
||||
@@ -221,4 +221,4 @@ if(false === $cached)
|
||||
}
|
||||
|
||||
echo $cached;
|
||||
?>
|
||||
?>
|
@@ -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