1
0
mirror of synced 2024-11-21 21:06:07 +03:00

getLastError fix

This commit is contained in:
kruglov 2013-07-03 11:50:44 +04:00
parent 9a04be2d9a
commit 25595c514f

View File

@ -50,7 +50,10 @@ class IntaroCrmRestApi
public function getLastError()
{
return $this->statusCode . ' ' . $this->lastError;
if (!is_null($this->lastError))
return $this->statusCode . ' ' . $this->lastError;
else
return null;
}
public function getLastErrorMessage()