From 9495d0578159109a2bdd3867c69bd6924c2c3c94 Mon Sep 17 00:00:00 2001 From: skodak Date: Fri, 5 Jan 2007 08:44:05 +0000 Subject: [PATCH] fixed my previous changes broken by new user form merging --- user/edit.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user/edit.php b/user/edit.php index 395c397c9f..ad8b1fde98 100644 --- a/user/edit.php +++ b/user/edit.php @@ -99,7 +99,7 @@ unset($usernew->password); } - if (!empty($CFG->unicodedb) && $CFG->allowusermailcharset) { + if ($CFG->allowusermailcharset) { $usernew->mailcharset = clean_param($usernew->mailcharset, PARAM_CLEAN); if (!empty($usernew->mailcharset)) { set_user_preference('mailcharset', $usernew->mailcharset, $user->id); @@ -285,7 +285,7 @@ } else { $userfullname = fullname($user, has_capability('moodle/site:viewfullnames', get_context_instance(CONTEXT_COURSE, $course->id))); } - if ($course->category) { + if ($course->id != SITEID) { print_header("$course->shortname: $streditmyprofile", "$course->fullname: $streditmyprofile", "wwwroot/course/view.php?id=$course->id\">$course->shortname -> id\">$strparticipants -- 2.39.5