"MDL-17143, don't display the user description at all when user isn't enrolled in any courses, backported to 1.6"

This commit is contained in:
dongsheng
2008-11-18 02:49:39 +00:00
parent ebad4013c8
commit e45607b491
7 changed files with 27 additions and 4 deletions
+3 -2
View File
@@ -427,8 +427,9 @@ function find_form_errors(&$user, &$usernew, &$err, &$um) {
if (over_bounce_threshold($user) && $user->email == $usernew->email)
$err['email'] = get_string('toomanybounces');
if (empty($usernew->description) and !isadmin())
$err["description"] = get_string("missingdescription");
if (empty($usernew->description) and !isadmin()) {
//$err["description"] = get_string("missingdescription");
}
if (empty($usernew->city))
$err["city"] = get_string("missingcity");