Skip to content
Browse files

Fixed missing closing parentheses in forum_search_posts() for embargo…

…ed announcements
  • Loading branch information...
1 parent 54be69d commit c7ac6225cc381b8660f5df05f1d5d91642e69848 patrickslee committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/forum/lib.php
View
2 mod/forum/lib.php
@@ -1081,7 +1081,7 @@ function forum_search_posts($searchterms, $courseid, $page=0, $recordsperpage=50
$timelimit = '';
if (!((isadmin() and !empty($CFG->admineditalways)) || isteacher($courseid))) {
$now = time();
- $timelimit = " AND (d.userid = $USER->id OR ((d.timestart = 0 OR d.timestart <= $now) AND (d.timeend = 0 OR d.timeend > $now))";
+ $timelimit = " AND (d.userid = $USER->id OR ((d.timestart = 0 OR d.timestart <= $now) AND (d.timeend = 0 OR d.timeend > $now)))";
}
$limit = sql_paging_limit($page, $recordsperpage);

0 comments on commit c7ac622

Please sign in to comment.
Something went wrong with that request. Please try again.