From 6b84dd19ac8f7cf1f82861a3f36606c007356c09 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Fri, 7 Mar 2008 12:36:16 +0000 Subject: [PATCH] Replace some tabs that managed to slip in. What is Eclipse playing at? --- mod/quiz/accessrules.php | 6 +++--- mod/quiz/locallib.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mod/quiz/accessrules.php b/mod/quiz/accessrules.php index 2a2ea4e21f..9e0b1641ac 100644 --- a/mod/quiz/accessrules.php +++ b/mod/quiz/accessrules.php @@ -243,8 +243,8 @@ class quiz_access_manager { print_header(); print_box_start(); if ($message) { - echo '

' . $message . '

' . get_string('windowclosing', 'quiz') . '

'; - $delay = 5; + echo '

' . $message . '

' . get_string('windowclosing', 'quiz') . '

'; + $delay = 5; } else { echo '

' . get_string('pleaseclose', 'quiz') . '

'; $delay = 0; @@ -696,7 +696,7 @@ class securewindow_access_rule extends quiz_access_rule_base { public function make_review_link($linktext, $attemptid) { global $CFG; return link_to_popup_window($CFG->wwwroot . '/mod/quiz/review.php?q=' . $this->_quiz->id . - '&attempt=' . $attemptid, 'quizpopup', $linktext, '', '', '', $windowoptions, true); + '&attempt=' . $attemptid, 'quizpopup', $linktext, '', '', '', $windowoptions, true); } /** diff --git a/mod/quiz/locallib.php b/mod/quiz/locallib.php index a48c4fcf8b..e98499d8dc 100644 --- a/mod/quiz/locallib.php +++ b/mod/quiz/locallib.php @@ -142,7 +142,7 @@ function quiz_get_user_attempt_unfinished($quizid, $userid) { function quiz_get_latest_attempt_by_user($quizid, $userid) { global $CFG; return get_record_sql('SELECT qa.* FROM ' . $CFG->prefix . 'quiz_attempts qa - WHERE qa.quiz=' . $quizid . ' AND qa.userid=' . $userid . ' AND qa.timestart = ( + WHERE qa.quiz=' . $quizid . ' AND qa.userid=' . $userid . ' AND qa.timestart = ( SELECT MAX(timestart) FROM ' . $CFG->prefix . 'quiz_attempts ssqa WHERE ssqa.quiz=' . $quizid . ' AND ssqa.userid=' . $userid . ')'); } -- 2.39.5