From: diml Date: Sun, 4 Nov 2007 22:43:18 +0000 (+0000) Subject: corrects "usepassword" rule 2 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=31b53a5a1e2bbb0a854473cf021d479daef2e141;p=moodle.git corrects "usepassword" rule 2 --- diff --git a/search/documents/lesson_document.php b/search/documents/lesson_document.php index 8354fe56ef..9781e14d12 100644 --- a/search/documents/lesson_document.php +++ b/search/documents/lesson_document.php @@ -183,7 +183,7 @@ function lesson_check_text_access($path, $itemtype, $this_id, $user, $group_id, return false; } - if ($lesson->usepassword && !lessonsuperuser){ + if ($lesson->usepassword && !$lessonsuperuser){ if (!empty($CFG->search_access_debug)) echo "search reject : password required, cannot output in searches "; return false; }