Commit 853608c8 authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Fix MySQL error when viewing institutions

parent 511b9a27
......@@ -225,7 +225,7 @@ if ($institution || $add) {
else {
// Get a list of institutions
$prefix = get_config('dbprefix');
$institutions = get_records_sql_array('SELECT i.name, i.displayname, i.registerallowed, COUNT(u.*) AS hasmembers
$institutions = get_records_sql_array('SELECT i.name, i.displayname, i.registerallowed, COUNT(u.id) AS hasmembers
FROM ' . $prefix . 'institution i
LEFT OUTER JOIN ' . $prefix . 'usr u ON (u.institution = i.name)
GROUP BY 1, 2, 3
......
Supports Markdown
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