Commit 0337f187 authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1717035: Checking if there are valid institutions



before displaying register form as count(false) = 1

behatnotneeded

Change-Id: Ic2e20d71ab024fddb85b7f1c0062db4e174283cc
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent e7b91ff8
......@@ -2161,7 +2161,7 @@ function auth_generate_registration_form($formname, $authname='internal', $goto)
$registerconfirm = array();
$reason = false;
if (count($institutions) > 0) {
if ($institutions && count($institutions) > 0) {
$options = array();
foreach ($institutions as $institution) {
$options[$institution->name] = $institution->displayname;
......
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