Skip to content

Commit

Permalink
implemented fix for bug 2745 contributed by kagotani
Browse files Browse the repository at this point in the history
  • Loading branch information
gustav_delius committed Mar 16, 2005
1 parent 36934a5 commit 2f2aad6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/quiz/edit.php
Expand Up @@ -175,8 +175,8 @@
if (!$tocategory = get_record('quiz_categories', 'id', $_REQUEST['category'])) {
error('Invalid category');
}
if (!isteacheredit($category->course)) {
error(get_string('categorynoedit', 'quiz', $tocategory->name), edit.php);
if (!isteacheredit($tocategory->course)) {
error(get_string('categorynoedit', 'quiz', $tocategory->name), 'edit.php');
}
$rawquestions = $_POST;
foreach ($rawquestions as $key => $value) { // Parse input for question ids
Expand Down

0 comments on commit 2f2aad6

Please sign in to comment.