From: donal72 Date: Mon, 8 Jan 2007 05:05:00 +0000 (+0000) Subject: mnet: In lib/db/upgrade.php, switch the magic number 1 to $CFG->mnet_localhost_id X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=cac88d400ace7331463b2240ffc997251fe4d304;p=moodle.git mnet: In lib/db/upgrade.php, switch the magic number 1 to $CFG->mnet_localhost_id --- diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index 0693f3d029..48ea18baca 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -386,7 +386,7 @@ function xmldb_main_upgrade($oldversion=0) { $result = $result && create_table($table); if (empty($USER->mnet_host_id)) { - $USER->mnet_host_id = 1; // Something for the current user to prevent warnings + $USER->mnet_host_id = $CFG->mnet_localhost_id; // Something for the current user to prevent warnings } /**