Commit dc3a11e8 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Don't try to set 'error' member in Peer class

parent e3982882
......@@ -171,7 +171,6 @@ class Peer {
// Couldn't find the IP address?
if ($ipaddress === $hostname && !preg_match('/^\d+\.\d+\.\d+.\d+$/',$hostname)) {
$this->error[] = array('code' => 2, 'text' => get_string("noaddressforhost", 'mnet'));
throw new ParamOutOfRangeException('Could not find IP address for host: '.addslashes($hostname));
return false;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment