Possible fix for the network class error on line 81.

This commit is contained in:
skeeter 2002-07-20 01:32:00 +00:00
parent daba675559
commit 9db6ba3adc

View File

@ -78,7 +78,10 @@
if(floor(phpversion()) == 4) if(floor(phpversion()) == 4)
{ {
$this->socket = fsockopen($server,$port,$errcode,$errmsg,$timeout); $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 else
{ {