Merged from 1.7.

This commit is contained in:
vyshane 2007-02-02 07:56:45 +00:00
parent 986f093fef
commit 02cb4f393d

View File

@ -67,10 +67,13 @@
echo '<div class="user-content">';
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;