From 158db3350522adba33f28bf78e4baad141bc5145 Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Wed, 3 Aug 2016 18:17:23 +0200 Subject: Changes specific to darnassus.sceen.net --- libs/Utils/Misc.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'libs/Utils/Misc.php') 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') { -- cgit v1.2.3