MDL-12212 fixed missing course setup + tags incorrect $id parameter

This commit is contained in:
skodak
2009-05-25 21:45:48 +00:00
parent e3ea4a75e9
commit 58c2e0697d
+3 -1
View File
@@ -23,6 +23,8 @@
$SESSION->wantsurl = $CFG->httpswwwroot.'/user/edit.php';
}
redirect(get_login_url());
} else {
$PAGE->set_course($course);
}
// Guest can not edit
@@ -43,7 +45,7 @@
// User interests separated by commas
if (!empty($CFG->usetags)) {
require_once($CFG->dirroot.'/tag/lib.php');
$user->interests = tag_get_tags_array('user', $id);
$user->interests = tag_get_tags_array('user', $user->id);
}
// remote users cannot be edited