From 4b457a71cce1b6e14dcb9077ef12d711068fc2dc Mon Sep 17 00:00:00 2001 From: David Mudrak Date: Wed, 1 Dec 2010 10:00:18 +0000 Subject: [PATCH] MDL-25369 mnet: do not show deleted peers in the remote enrolment client --- mnet/service/enrol/locallib.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mnet/service/enrol/locallib.php b/mnet/service/enrol/locallib.php index 591cf5d50b1..f5adbfc5342 100644 --- a/mnet/service/enrol/locallib.php +++ b/mnet/service/enrol/locallib.php @@ -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); }