Commit f11d5082 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix for error when all non-requested institutions don't allow registration

parent 5b8811d8
......@@ -321,8 +321,11 @@ function confirminvite_submit(Pieform $form, $values) {
unset($institutions['mahara']);
foreach ($institutions as $k => $i) {
if ($i->name == 'mahara' || !$i->registerallowed) {
unset($institutions[$k]);
}
}
// Request institution membership button for the remaining insitutions
if (!empty($institutions) &&
(get_config('usersallowedmultipleinstitutions') || empty($member))) {
......
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