Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 07f59c9049d2d731854434a66d65df6c3f9e234f 1 parent cd45596
@mudrd8mz mudrd8mz authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  blocks/mnet_hosts/block_mnet_hosts.php
View
3  blocks/mnet_hosts/block_mnet_hosts.php
@@ -86,6 +86,7 @@ function get_content() {
{mnet_service} s_SP
WHERE
h.id <> ? AND
+ h.id <> ? AND
h.id = h2s_IDP.hostid AND
h.deleted = 0 AND
h.applicationid = a.id 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();
Please sign in to comment.
Something went wrong with that request. Please try again.