From 9db6ba3adca8690f3502df665890268dfa7aea2b Mon Sep 17 00:00:00 2001 From: skeeter Date: Sat, 20 Jul 2002 01:32:00 +0000 Subject: [PATCH] Possible fix for the network class error on line 81. --- phpgwapi/inc/class.network.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.network.inc.php b/phpgwapi/inc/class.network.inc.php index 4954a23508..73baec6191 100644 --- a/phpgwapi/inc/class.network.inc.php +++ b/phpgwapi/inc/class.network.inc.php @@ -78,7 +78,10 @@ if(floor(phpversion()) == 4) { $this->socket = fsockopen($server,$port,$errcode,$errmsg,$timeout); - socket_set_timeout($this->socket,$timeout,0); + if($this->socket) + { + socket_set_timeout($this->socket,$timeout,0); + } } else {