MDL-25369 mnet: do not show deleted peers in the remote enrolment client

This commit is contained in:
David Mudrak 2010-12-01 10:00:18 +00:00
parent 3e7d386625
commit 4b457a71cc

View File

@ -101,6 +101,7 @@ class mnetservice_enrol {
JOIN {mnet_service} s ON hs.serviceid = s.id
JOIN {mnet_application} a ON h.applicationid = a.id
WHERE s.name = 'mnet_enrol'
AND h.deleted = 0
AND hs.publish = 1";
$this->cachesubscribers = $DB->get_records_sql($sql);
}
@ -129,6 +130,7 @@ class mnetservice_enrol {
JOIN {mnet_service} s ON hs.serviceid = s.id
JOIN {mnet_application} a ON h.applicationid = a.id
WHERE s.name = 'mnet_enrol'
AND h.deleted = 0
AND hs.subscribe = 1";
$this->cachepublishers = $DB->get_records_sql($sql);
}