]> git.mjollnir.org Git - moodle.git/commitdiff
fixed my previous changes broken by new user form merging
authorskodak <skodak>
Fri, 5 Jan 2007 08:44:05 +0000 (08:44 +0000)
committerskodak <skodak>
Fri, 5 Jan 2007 08:44:05 +0000 (08:44 +0000)
user/edit.php

index 395c397c9f13405041667f2b806cb269e4afccb6..ad8b1fde9851c6830330d8f8dcc016cfd4d395be 100644 (file)
@@ -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);
         } 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",
                         "<a href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</a>
                         -> <a href=\"index.php?id=$course->id\">$strparticipants</a>