From 645dff1cf77d2c57eb6f8a5c9aa83fcbb9189550 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Wed, 28 Feb 2007 11:34:50 +0000 Subject: [PATCH] Correct logic for stopping people using guest access from doing quizzes. Merged from MOODLE_18_STABLE. --- mod/quiz/attempt.php | 2 +- mod/quiz/view.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/quiz/attempt.php b/mod/quiz/attempt.php index 960f172765..cdbd50184f 100644 --- a/mod/quiz/attempt.php +++ b/mod/quiz/attempt.php @@ -108,7 +108,7 @@ } /// Check availability - if (isguest()) { + if (isguestuser()) { print_heading(get_string('guestsno', 'quiz')); if (empty($popup)) { print_footer($course); diff --git a/mod/quiz/view.php b/mod/quiz/view.php index 1c26656fca..82cd59f280 100644 --- a/mod/quiz/view.php +++ b/mod/quiz/view.php @@ -137,7 +137,7 @@ // // So for courses that allow guest access, it is good to offer people an easy // way to log in at this point if they have got this far before logging in. - if (isguest()) { + if (isguestuser()) { $loginurl = $CFG->wwwroot.'/login/index.php'; if (!empty($CFG->loginhttps)) { $loginurl = str_replace('http:','https:', $loginurl); -- 2.39.5