]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-11354 ipaddress typo in mnet environment.php
authorskodak <skodak>
Wed, 19 Sep 2007 15:44:31 +0000 (15:44 +0000)
committerskodak <skodak>
Wed, 19 Sep 2007 15:44:31 +0000 (15:44 +0000)
mnet/environment.php

index 4839e67cb7a9592375dbff793f477db24eae20bd..ebdce1ba685e19e33c32a41a99147e19034d830a 100644 (file)
@@ -45,7 +45,7 @@ class mnet_environment {
                     $this->ip_address = $_SERVER['SERVER_ADDR'];
                 }
 
-                if ($existingrecord = get_record('mnet_host', 'ip_address', $this->ipaddress)) {
+                if ($existingrecord = get_record('mnet_host', 'ip_address', $this->ip_address)) {
                     $this->id = $existingrecord->id;
                 } else {  // make a new one
                     $this->id       = insert_record('mnet_host', $this, true);