Permalink
Browse files

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

  • Loading branch information...
1 parent a4d967a commit 79b84c93fbe3b40a74a3a74970612c1291fae436 martinlanghoff committed Jan 18, 2007
Showing with 6 additions and 1 deletion.
  1. +6 −1 enrol/mnet/enrol.php
@@ -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();
+ }
}
/**

0 comments on commit 79b84c9

Please sign in to comment.