From 821d7ad4731a33ed7b134f3d797724db395c7745 Mon Sep 17 00:00:00 2001 From: iAmShorty Date: Fri, 28 Mar 2014 13:28:25 +0100 Subject: [PATCH] [FIX] isset host --- public/include/admin_checks.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/include/admin_checks.php b/public/include/admin_checks.php index cdd9ad29..179d873a 100644 --- a/public/include/admin_checks.php +++ b/public/include/admin_checks.php @@ -101,7 +101,8 @@ if (@$_SESSION['USERDATA']['is_admin'] && $user->isAdmin(@$_SESSION['USERDATA'][ $host = @gethostbyname($config['gettingstarted']['stratumurl']); $port = $config['gettingstarted']['stratumport']; - if (isset($port) and + if (isset($host) and + isset($port) and ($socket=socket_create(AF_INET, SOCK_STREAM, SOL_TCP)) and (socket_set_option($socket, SOL_SOCKET, SO_SNDTIMEO, array('sec' => 3, 'usec' => 0))) and (@socket_connect($socket, $host, $port)))