From cac88d400ace7331463b2240ffc997251fe4d304 Mon Sep 17 00:00:00 2001 From: donal72 Date: Mon, 8 Jan 2007 05:05:00 +0000 Subject: [PATCH] mnet: In lib/db/upgrade.php, switch the magic number 1 to $CFG->mnet_localhost_id --- lib/db/upgrade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } /** -- 2.39.5