summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-01-31 15:15:48 +0300
committerWolfy-J <[email protected]>2019-01-31 15:15:48 +0300
commit91423f63b2fc79daf0afb51715bedafe647f0c47 (patch)
treedd0972e7569f788dc996ae8816cc21073cb2a237 /src
parent0eb191bf2399ae59b48a88e21dad51104edf7c53 (diff)
CS
Diffstat (limited to 'src')
-rw-r--r--src/HttpClient.php3
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;
}