summaryrefslogtreecommitdiff
path: root/libs/Utils/Misc.php
diff options
context:
space:
mode:
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')
{