From: moodler Date: Tue, 15 Oct 2002 17:32:50 +0000 (+0000) Subject: Small bugfixes ... (yawn) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=92a3c884f54e192d5dc6b4a6507c86671cd63bae;p=moodle.git Small bugfixes ... (yawn) --- diff --git a/mod/quiz/edit.php b/mod/quiz/edit.php index 09963d828e..18123dac3b 100644 --- a/mod/quiz/edit.php +++ b/mod/quiz/edit.php @@ -120,15 +120,7 @@ } if ($cat) { //----------------------------------------------------------- - if ($catshow) { - $modform->category = $cat; - } else if ($catrename) { - redirect("category.php?rename=$cat"); - } else if ($catdelete) { - redirect("category.php?delete=$cat"); - } else if ($catnew) { - redirect("category.php?new=$cat"); - } + $modform->category = $cat; } $modform->sumgrades = 0; diff --git a/mod/quiz/lib.php b/mod/quiz/lib.php index acb2191ddb..bb1c0b7978 100644 --- a/mod/quiz/lib.php +++ b/mod/quiz/lib.php @@ -358,7 +358,7 @@ function quiz_print_category_form($course, $current) { echo "
"; echo "$strcategory: "; choose_from_menu($categories, "cat", "$current"); - echo ""; + echo ""; echo "
"; echo ""; echo "
"; @@ -373,7 +373,7 @@ function quiz_get_all_question_grades($questionlist, $quizid) { // Given a list of question IDs, finds grades or invents them to // create an array of matching grades - $questions = get_records_sql("SELECT * FROM quiz_question_grades + $questions = get_records_sql("SELECT question,grade FROM quiz_question_grades WHERE quiz = '$quizid' AND question IN ($questionlist)");