diff --git a/blocks/mnet_hosts/block_mnet_hosts.php b/blocks/mnet_hosts/block_mnet_hosts.php index ea5aa99ad17f1..1af74ac71f31b 100644 --- a/blocks/mnet_hosts/block_mnet_hosts.php +++ b/blocks/mnet_hosts/block_mnet_hosts.php @@ -85,6 +85,7 @@ function get_content() { {mnet_host2service} h2s_SP, {mnet_service} s_SP WHERE + h.id <> ? AND h.id <> ? AND h.id = h2s_IDP.hostid AND h.deleted = 0 AND @@ -100,7 +101,7 @@ function get_content() { a.display_name, h.name"; - $hosts = $DB->get_records_sql($sql, array($CFG->mnet_localhost_id)); + $hosts = $DB->get_records_sql($sql, array($CFG->mnet_localhost_id, $CFG->mnet_all_hosts_id)); $this->content = new stdClass(); $this->content->items = array();