We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 475c889 commit 774317bCopy full SHA for 774317b
1 file changed
Paylike/Adapter.php
@@ -75,7 +75,7 @@ public function request( $url, $data = null, $httpVerb = 'post' ) {
75
$httpCode = curl_getinfo( $ch, CURLINFO_HTTP_CODE );
76
curl_close( $ch );
77
$output = json_decode( $result, true );
78
- if ( $httpCode >= 200 || $httpCode <= 299 ) {
+ if ( $httpCode >= 200 && $httpCode <= 299 ) {
79
return $output;
80
} else {
81
return false;
0 commit comments