"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:
+3
-2
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user