diff options
author | Richard Braun <rbraun@sceen.net> | 2016-08-03 18:17:23 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2016-08-03 18:17:23 +0200 |
commit | 158db3350522adba33f28bf78e4baad141bc5145 (patch) | |
tree | 724b5e448123df426db0c48ef512c0a57a060c77 /libs/Utils | |
parent | b6d98b7f12b2e484f3c2728a69ae99c759582f82 (diff) |
Diffstat (limited to 'libs/Utils')
-rw-r--r-- | libs/Utils/Misc.php | 11 |
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') { |