Skip to content

Commit

Permalink
Removing HTTP_POST_VARS which isn't always there
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Mar 10, 2005
1 parent 7d56fe1 commit 07b9b0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/exercise/assessments.php
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@
elseif ($action == 'updateassessment') {

$timenow = time();
$form = (object)$HTTP_POST_VARS;
$form = data_submitted();

require_variable($aid);
if (! $assessment = get_record("exercise_assessments", "id", $aid)) {
Expand Down Expand Up @@ -877,7 +877,7 @@
}

$timenow = time();
$form = (object)$HTTP_POST_VARS;
$form = data_submitted();


// first do the (teacher's) assessment of the student's submission
Expand Down

0 comments on commit 07b9b0b

Please sign in to comment.