MDL-11354 ipaddress typo in mnet environment.php

This commit is contained in:
skodak 2007-09-19 15:44:31 +00:00
parent 6ef56c991f
commit 3772df8dee

View 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);