Skip to content

Commit

Permalink
enrol/mnet: list_remote_servers() must always return an array
Browse files Browse the repository at this point in the history
  • Loading branch information
martinlanghoff committed Jan 18, 2007
1 parent a4d967a commit 79b84c9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion enrol/mnet/enrol.php
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,12 @@ function list_remote_servers() {
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();
}
}

/**
Expand Down

0 comments on commit 79b84c9

Please sign in to comment.