Skip to content

Commit

Permalink
NOMDL mnet: do not display 'All Hosts' in the Network servers block
Browse files Browse the repository at this point in the history
  • Loading branch information
mudrd8mz committed Dec 10, 2010
1 parent cd45596 commit 07f59c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion blocks/mnet_hosts/block_mnet_hosts.php
Expand Up @@ -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
Expand All @@ -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();
Expand Down

0 comments on commit 07f59c9

Please sign in to comment.