update Rest

This commit is contained in:
alphayax 2016-02-03 21:52:36 +01:00
parent 2d5f28643f
commit 6e6b55f9dd
1 changed files with 2 additions and 2 deletions

View File

@ -63,8 +63,8 @@ class RestAuth extends alphayax\utils\Rest {
*/ */
protected function checkResponse(){ protected function checkResponse(){
$response = $this->getCurlResponse(); $response = $this->getCurlResponse();
if( false === $response->success){ if( false === $response['success']){
throw new \Exception( $response->msg); throw new \Exception( $response['success']);
} }
} }