From: vyshane Date: Mon, 25 Sep 2006 08:41:31 +0000 (+0000) Subject: Added $forums[$i]->type == 'qanda' check to make things more explicit X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=cac40c2716e0046cb24e765877a9e22884af8494;p=moodle.git Added $forums[$i]->type == 'qanda' check to make things more explicit --- diff --git a/mod/forum/lib.php b/mod/forum/lib.php index dca3531a3a..a0eff9ab5e 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -1242,7 +1242,7 @@ function forum_search_posts($searchterms, $courseid=0, $limitfrom=0, $limitnum=5 OR ((d.timestart = 0 OR d.timestart <= $now) AND (d.timeend = 0 OR d.timeend > $now)) )"; } - if (isset($forums[$i]->onlydiscussions)) { + if ($forums[$i]->type == 'qanda' && isset($forums[$i]->onlydiscussions)) { // This is a qanda forum. if (is_array($forums[$i]->onlydiscussions)) { // Show question posts as well as posts from discussions in