From 6e6b55f9dd85343cc42c857264eedab3a07ba0e9 Mon Sep 17 00:00:00 2001 From: alphayax Date: Wed, 3 Feb 2016 21:52:36 +0100 Subject: [PATCH] update Rest --- freebox/utils/RestAuth.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freebox/utils/RestAuth.php b/freebox/utils/RestAuth.php index 280a1eb..b2f68dc 100644 --- a/freebox/utils/RestAuth.php +++ b/freebox/utils/RestAuth.php @@ -63,8 +63,8 @@ class RestAuth extends alphayax\utils\Rest { */ protected function checkResponse(){ $response = $this->getCurlResponse(); - if( false === $response->success){ - throw new \Exception( $response->msg); + if( false === $response['success']){ + throw new \Exception( $response['success']); } }