MDL-24530 Fixed core functions usage during early install phase when the site is not fully set up yet
This commit is contained in:
+4
-2
@@ -2605,8 +2605,10 @@ class admin_setting_users_with_capability extends admin_setting_configmultiselec
|
||||
'$@NONE@$' => get_string('nobody'),
|
||||
'$@ALL@$' => get_string('everyonewhocan', 'admin', get_capability_string($this->capability)),
|
||||
);
|
||||
foreach ($users as $user) {
|
||||
$this->choices[$user->username] = fullname($user);
|
||||
if (is_array($users)) {
|
||||
foreach ($users as $user) {
|
||||
$this->choices[$user->username] = fullname($user);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user