Commit 66cbd293 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix query in get_peer_from_instanceid function which sometimes returned >1 row


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent eadbda40
......@@ -736,11 +736,11 @@ function get_peer_from_instanceid($authinstanceid) {
$sql = 'SELECT
h.*
FROM
{auth_instance} ai,
{auth_instance_config} aic,
{host} h
WHERE
ai.institution = h.institution AND
ai.id = ?';
aic.value = h.wwwroot AND
aic.instance = ? AND aic.field = \'wwwroot\'';
return get_record_sql($sql, array($authinstanceid));
}
......
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