Skip to content

Commit

Permalink
Fix issue not allowing display of system announcement in news_list.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ywarnier committed Oct 11, 2016
1 parent 0851cc5 commit c259624
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/inc/lib/system_announcements.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ public static function displayAnnouncement($announcementId, $visibility)
$now = api_get_utc_datetime();

$whereConditions = [
"(lang = ? OR lang IS NULL) " => $selectedUserLanguage,
"(lang = ? OR lang IS NULL OR lang = '') " => $selectedUserLanguage,
"AND (? >= date_start AND ? <= date_end) " => [$now, $now],
"AND id = ? " => intval($announcementId)
];
Expand Down

0 comments on commit c259624

Please sign in to comment.