We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d53f189 commit eded6b8Copy full SHA for eded6b8
src/AbraFlexi/RO.php
@@ -1298,7 +1298,9 @@ public function parseResponse($responseDecoded, $responseCode)
1298
1299
// no break
1300
case 401:
1301
- if (\array_key_exists('message', $responseDecoded)) {
+ if (is_string($responseDecoded)){
1302
+ $msg = $responseDecoded;
1303
+ } elseif (\array_key_exists('message', $responseDecoded)) {
1304
$msg = $responseDecoded['message'];
1305
} elseif (isset($responseDecoded[key($responseDecoded)]['message'])) {
1306
$msg = $responseDecoded[key($responseDecoded)]['message'];
0 commit comments