Skip to content

Commit

Permalink
Fix: Ewww changed response for invalid keys. Fixes #350
Browse files Browse the repository at this point in the history
  • Loading branch information
rosell-dk committed Apr 6, 2024
1 parent 928f8eb commit 9765b67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Convert/Converters/Ewww.php
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ public static function getKeyStatus($key)
}
$responseObj = json_decode($response);
if (isset($responseObj->error)) {
if ($responseObj->error == 'invalid') {
if (($responseObj->error == 'invalid') || ($responseObj->error == 'bye invalid')) {
return 'invalid';
} else {
if ($responseObj->error == 'bye invalid') {
Expand Down

0 comments on commit 9765b67

Please sign in to comment.