From: skodak Date: Thu, 15 Feb 2007 20:41:16 +0000 (+0000) Subject: fixed problems with undefined $USER->mnethostid causing page errors in IE during... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e5038696367449f2396b76a4041320d7f40b3e2c;p=moodle.git fixed problems with undefined $USER->mnethostid causing page errors in IE during logout --- diff --git a/login/logout.php b/login/logout.php index c74cfefddd..4714963209 100644 --- a/login/logout.php +++ b/login/logout.php @@ -3,7 +3,7 @@ require_once("../config.php"); - if ($USER->mnethostid != $CFG->mnet_localhost_id) { + if (!empty($USER->mnethostid) and $USER->mnethostid != $CFG->mnet_localhost_id) { $host = get_record('mnet_host', 'id', $USER->mnethostid); $wwwroot = $host->wwwroot; } else {