mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 04:33:13 +01:00
NOMDL mnet: do not display 'All Hosts' in the Network servers block
This commit is contained in:
parent
cd4559654d
commit
07f59c9049
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user