diff options
author | Wolfy-J <[email protected]> | 2019-01-31 15:15:48 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2019-01-31 15:15:48 +0300 |
commit | 91423f63b2fc79daf0afb51715bedafe647f0c47 (patch) | |
tree | dd0972e7569f788dc996ae8816cc21073cb2a237 /src | |
parent | 0eb191bf2399ae59b48a88e21dad51104edf7c53 (diff) |
CS
Diffstat (limited to 'src')
-rw-r--r-- | src/HttpClient.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/HttpClient.php b/src/HttpClient.php index f262a9f1..bfc65dc8 100644 --- a/src/HttpClient.php +++ b/src/HttpClient.php @@ -41,7 +41,8 @@ class HttpClient return null; } - if (empty($ctx = json_decode($ctx, true))) { + $ctx = json_decode($ctx, true); + if (is_null($ctx)) { // invalid context return null; } |