aboutsummaryrefslogtreecommitdiffstats
path: root/libs/Utils
diff options
context:
space:
mode:
Diffstat (limited to 'libs/Utils')
-rw-r--r--libs/Utils/Misc.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/libs/Utils/Misc.php b/libs/Utils/Misc.php
index b654cef..7aab276 100644
--- a/libs/Utils/Misc.php
+++ b/libs/Utils/Misc.php
@@ -171,15 +171,14 @@ class Misc
{
$handle = @fsockopen($host, $port, $errno, $errstr, $timeout);
- if ($handle)
+ if (!$handle)
{
- fclose($handle);
- return true;
+ return false;
}
else
{
fclose($handle);
- return false;
+ return true;
}
}
elseif ($protocol == 'udp')