Commit f9f6868e authored by Donal McMullan's avatar Donal McMullan
Browse files

An institution no longer has an associated auth plugin

parent ea1a54ff
......@@ -186,10 +186,10 @@ if ($institution || $add) {
else {
// Get a list of institutions
$prefix = get_config('dbprefix');
$institutions = get_records_sql_array('SELECT i.name, i.displayname, i.authplugin, i.registerallowed, COUNT(u.*) AS hasmembers
$institutions = get_records_sql_array('SELECT i.name, i.displayname, i.registerallowed, COUNT(u.*) AS hasmembers
FROM ' . $prefix . 'institution i
LEFT OUTER JOIN ' . $prefix . 'usr u ON (u.institution = i.name)
GROUP BY 1, 2, 3, 4
GROUP BY 1, 2, 3
ORDER BY i.name', array());
$smarty->assign('institutions', $institutions);
}
......
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