Commit 999f5d66 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Add user failed when there were no institutions

parent 7c8d12a3
......@@ -109,7 +109,11 @@ if (count($authinstances) > 1) {
'description' => get_string('remoteusernamedescription', 'admin'),
);
}
} else if (count($authinstances == 1)) {
$elements['authinstance'] = array(
'type' => 'hidden',
'value' => $authinstances[0]->id,
);
}
$elements['submit'] = array(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment