getLastError fix
This commit is contained in:
parent
9a04be2d9a
commit
25595c514f
@ -50,7 +50,10 @@ class IntaroCrmRestApi
|
|||||||
|
|
||||||
public function getLastError()
|
public function getLastError()
|
||||||
{
|
{
|
||||||
return $this->statusCode . ' ' . $this->lastError;
|
if (!is_null($this->lastError))
|
||||||
|
return $this->statusCode . ' ' . $this->lastError;
|
||||||
|
else
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getLastErrorMessage()
|
public function getLastErrorMessage()
|
||||||
|
Loading…
Reference in New Issue
Block a user