Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed missing closing parentheses in forum_search_posts() for embargo…

…ed announcements
  • Loading branch information...
commit c7ac6225cc381b8660f5df05f1d5d91642e69848 1 parent 54be69d
patrickslee authored
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);
Please sign in to comment.
Something went wrong with that request. Please try again.