Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
dc3a11e8
Commit
dc3a11e8
authored
Sep 04, 2009
by
Richard Mansfield
Browse files
Don't try to set 'error' member in Peer class
parent
e3982882
Changes
1
Show whitespace changes
Inline
Side-by-side
htdocs/lib/peer.php
View file @
dc3a11e8
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment