enrol/mnet: list_remote_servers() must always return an array

This commit is contained in:
martinlanghoff 2007-01-18 03:16:09 +00:00
parent a4d967a463
commit 79b84c93fb

View File

@ -394,7 +394,12 @@ class enrolment_plugin_mnet {
h2s.serviceid = s.id AND
s.name = 'mnet_enrol'";
return get_records_sql($sql);
$res = get_records_sql($sql);
if (is_array($res)) {
return $res;
} else {
return array();
}
}
/**