]> git.mjollnir.org Git - moodle.git/commitdiff
mnet: In lib/db/upgrade.php, switch the magic number 1 to $CFG->mnet_localhost_id
authordonal72 <donal72>
Mon, 8 Jan 2007 05:05:00 +0000 (05:05 +0000)
committerdonal72 <donal72>
Mon, 8 Jan 2007 05:05:00 +0000 (05:05 +0000)
lib/db/upgrade.php

index 0693f3d029ca8c0e21c11252066bf1e7ee09965d..48ea18baca36852146f4f190d1aade30fed7ebcb 100644 (file)
@@ -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
         }
 
         /**