forked from blurryface/Website
feat: forgot this
This commit is contained in:
parent
302677e41f
commit
c9eae5ea8c
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
$json = json_decode($res->body, true);
|
$json = json_decode($res->body, true);
|
||||||
|
|
||||||
if($json['error']) {
|
if(isset($json['error'])) {
|
||||||
return array(
|
return array(
|
||||||
'error' => true,
|
'error' => true,
|
||||||
'error_description' => $json['error_description']
|
'error_description' => $json['error_description']
|
||||||
|
@ -51,7 +51,7 @@
|
||||||
|
|
||||||
$json = json_decode($res->body, true);
|
$json = json_decode($res->body, true);
|
||||||
|
|
||||||
if($json['error']) {
|
if(isset($json['error'])) {
|
||||||
return array(
|
return array(
|
||||||
'error' => true,
|
'error' => true,
|
||||||
'error_description' => $json['error_description']
|
'error_description' => $json['error_description']
|
||||||
|
|
Loading…
Reference in a new issue