mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-11354 ipaddress typo in mnet environment.php
This commit is contained in:
parent
6ef56c991f
commit
3772df8dee
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user