NOMDL mnet: do not display 'All Hosts' in the Network servers block

This commit is contained in:
David Mudrak 2010-12-10 22:18:26 +00:00
parent cd4559654d
commit 07f59c9049

View File

@ -85,6 +85,7 @@ class block_mnet_hosts extends block_list {
{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 @@ class block_mnet_hosts extends block_list {
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();