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

Unnecessary check removed

parent ea5a0c4f
......@@ -113,9 +113,7 @@ if ($institution || $add) {
$inuserecords = array();
if ($records = get_records_sql_assoc('select authinstance, count(id) from {usr} where authinstance in ('.$instancestring.') group by authinstance', array())) {
foreach ($records as $record) {
if (!in_array($record->authinstance, $inuserecords)) {
$inuserecords[] = $record->authinstance;
}
$inuserecords[] = $record->authinstance;
}
}
$inuse = implode(',',$inuserecords);
......
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