mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Test for empty dataset to suppress a warning
This commit is contained in:
parent
d576d0402c
commit
32d651c853
@ -289,7 +289,7 @@ class auth_plugin_mnet extends auth_plugin_base {
|
||||
|
||||
// add the remote user to the database if necessary, and if allowed
|
||||
// TODO: refactor into a separate function
|
||||
if (! $localuser->id) {
|
||||
if (empty($localuser) || ! $localuser->id) {
|
||||
if (empty($this->config->auto_add_remote_users)) {
|
||||
error(get_string('nolocaluser', 'mnet'));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user