summaryrefslogtreecommitdiff
path: root/libs/Utils/Misc.php
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2016-08-03 18:17:23 +0200
committerRichard Braun <rbraun@sceen.net>2016-08-03 18:17:23 +0200
commit158db3350522adba33f28bf78e4baad141bc5145 (patch)
tree724b5e448123df426db0c48ef512c0a57a060c77 /libs/Utils/Misc.php
parentb6d98b7f12b2e484f3c2728a69ae99c759582f82 (diff)
Changes specific to darnassus.sceen.netHEADdarnassus
Diffstat (limited to 'libs/Utils/Misc.php')
-rw-r--r--libs/Utils/Misc.php11
1 files changed, 3 insertions, 8 deletions
diff --git a/libs/Utils/Misc.php b/libs/Utils/Misc.php
index 7aab276..37e578b 100644
--- a/libs/Utils/Misc.php
+++ b/libs/Utils/Misc.php
@@ -171,15 +171,10 @@ class Misc
{
$handle = @fsockopen($host, $port, $errno, $errstr, $timeout);
- if (!$handle)
- {
- return false;
- }
- else
- {
- fclose($handle);
+ if ($handle)
return true;
- }
+ else
+ return false;
}
elseif ($protocol == 'udp')
{