MDL-19077: Fix some initialisation order issues on the course/category management pages

This commit is contained in:
tjhunt
2009-07-20 03:28:50 +00:00
parent 75c7b84f16
commit a8ecfa4d5b
3 changed files with 9 additions and 13 deletions
+2 -1
View File
@@ -7,6 +7,7 @@
$id = required_param('id', PARAM_INT); // course id
$delete = optional_param('delete', '', PARAM_ALPHANUM); // delete confirmation hash
$PAGE->set_url('course/delete.php', array('id' => $id));
require_login();
if (!can_delete_course($id)) {
@@ -45,7 +46,7 @@
"delete.php?id=$course->id&delete=".md5($course->timemodified)."&sesskey=".sesskey(),
"category.php?id=$course->category");
print_footer($course);
print_footer();
exit;
}