|
@@ -156,7 +156,7 @@ class KerioApiSocket implements KerioApiSocketInterface {
|
|
|
* @throws KerioApiException
|
|
* @throws KerioApiException
|
|
|
*/
|
|
*/
|
|
|
public function send($data) {
|
|
public function send($data) {
|
|
|
- if ($this->checkConnection()) {
|
|
|
|
|
|
|
+ if ($this->checkConnection()) {
|
|
|
@fwrite($this->socketHandler, $data);
|
|
@fwrite($this->socketHandler, $data);
|
|
|
return $this->read();
|
|
return $this->read();
|
|
|
}
|
|
}
|
|
@@ -230,9 +230,9 @@ class KerioApiSocket implements KerioApiSocketInterface {
|
|
|
logModuleCall(
|
|
logModuleCall(
|
|
|
'kerioEmail',
|
|
'kerioEmail',
|
|
|
__FUNCTION__,
|
|
__FUNCTION__,
|
|
|
- $this->hostname,
|
|
|
|
|
|
|
+ $this,
|
|
|
'Debug Kerio Api 1',
|
|
'Debug Kerio Api 1',
|
|
|
- gethostbyname($this->hostname)
|
|
|
|
|
|
|
+ $hostname
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
if ($this->checkHost()) {
|
|
if ($this->checkHost()) {
|