From: vyshane Date: Fri, 2 Feb 2007 07:56:45 +0000 (+0000) Subject: Merged from 1.7. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=02cb4f393ddc9319bb4709cf1f804730f881f0c0;p=moodle.git Merged from 1.7. --- diff --git a/mod/forum/user.php b/mod/forum/user.php index 9391a1f983..d33216246f 100644 --- a/mod/forum/user.php +++ b/mod/forum/user.php @@ -67,10 +67,13 @@ echo '
'; - if ($course->id == SITEID) { - // Search throughout the whole site. - $searchcourse = 0; + if (!empty($CFG->forceloginforprofiles) || isloggedin()) { + // Search throughout the whole site. + $searchcourse = 0; + } else { + $searchcourse = SITEID; + } } else { // Search only for posts the user made in this course. $searchcourse = $course->id;