Skip to content

Commit

Permalink
Merge branch 'MDL-67024-master' of git://github.com/farhan6318/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta committed Mar 25, 2020
2 parents 9b8fc9b + caf5ebb commit e17046d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/pagelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1609,7 +1609,8 @@ protected function resolve_theme() {
}

$mnetpeertheme = '';
if (isloggedin() and isset($CFG->mnet_localhost_id) and $USER->mnethostid != $CFG->mnet_localhost_id) {
$mnetvarsok = isset($CFG->mnet_localhost_id) && isset($USER->mnethostid);
if (isloggedin() and $mnetvarsok and $USER->mnethostid != $CFG->mnet_localhost_id) {
require_once($CFG->dirroot.'/mnet/peer.php');
$mnetpeer = new mnet_peer();
$mnetpeer->set_id($USER->mnethostid);
Expand Down

0 comments on commit e17046d

Please sign in to comment.