Skip to content

Commit

Permalink
MDL-12212 fixed missing course setup + tags incorrect $id parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed May 25, 2009
1 parent e3ea4a7 commit 58c2e06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion user/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
$SESSION->wantsurl = $CFG->httpswwwroot.'/user/edit.php';
}
redirect(get_login_url());
} else {
$PAGE->set_course($course);
}

// Guest can not edit
Expand All @@ -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
Expand Down

0 comments on commit 58c2e06

Please sign in to comment.