index 2812e26880eab4dd50b5455bc3d2eb204d4b7348..7219459bcedc32b237c4963a9bc7cd39af98aa30 100644 (file)
private function decrypt($data)
{
/* decrypt data */
- if($this->b_encrypt){
+ if($this->b_encrypt && strlen($data)){
$data = base64_decode($data);
mcrypt_generic_init($this->td, $this->ckey, $this->iv);
$data = mdecrypt_generic($this->td, $data);
}
}
if((microtime(TRUE) - $start) > $this->timeout ){
- trigger_error(sprintf("Exceeded timeout %f while reading from socket",$this->timeout));
break;
}
}