Permalink
Browse files

enrol/mnet: list_remote_servers() should only list servers we use enr…

…olment for
  • Loading branch information...
1 parent 57bcde5 commit ccb60df832326d5ddd2e11e5fac850601b522901 martinlanghoff committed Jan 19, 2007
Showing with 4 additions and 3 deletions.
  1. +4 −3 enrol/mnet/enrol.php
View
7 enrol/mnet/enrol.php
@@ -392,9 +392,10 @@ function list_remote_servers() {
{$CFG->prefix}mnet_host2service h2s,
{$CFG->prefix}mnet_service s
WHERE
- h.id = h2s.hostid AND
- h2s.serviceid = s.id AND
- s.name = 'mnet_enrol'";
+ h.id = h2s.hostid AND
+ h2s.serviceid = s.id AND
+ s.name = 'mnet_enrol' AND
+ h2s.subscribe = 1";
$res = get_records_sql($sql);
if (is_array($res)) {

0 comments on commit ccb60df

Please sign in to comment.