Skip to content
This repository was archived by the owner on Jul 19, 2022. It is now read-only.

Commit 8c54294

Browse files
committed
Updated to 1.1.3 version
1 parent f70b3ec commit 8c54294

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Curl/Curl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public static function request($url, $params = [], $result = 'array') {
7777

7878
$response = json_decode($sanitize, $result === 'array');
7979

80-
return (json_last_error() === JSON_ERROR_NONE) ? $response : false;
80+
return ($response && json_last_error() === 0) ? $response : false;
8181
}
8282

8383
/**

0 commit comments

Comments
 (0)