Removing HTTP_POST_VARS which isn't always there

This commit is contained in:
moodler
2005-03-10 05:19:49 +00:00
parent 7d56fe1077
commit 07b9b0b94d
+2 -2
View File
@@ -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)) {
@@ -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