From: skodak Date: Mon, 25 May 2009 21:45:48 +0000 (+0000) Subject: MDL-12212 fixed missing course setup + tags incorrect $id parameter X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=58c2e0697d0a5bc419069c4b1c66bb48d1bf13ed;p=moodle.git MDL-12212 fixed missing course setup + tags incorrect $id parameter --- diff --git a/user/edit.php b/user/edit.php index 0caeb37395..1b770aef58 100644 --- a/user/edit.php +++ b/user/edit.php @@ -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