Skip to content

Commit

Permalink
Added response code 200 on promotion
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCartpenter committed Apr 26, 2024
1 parent 2dd57d1 commit b2e3eac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upload/admin/controller/extension/extension/promotion.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function index() {

curl_close($curl);

if ($response) {
if ($response && curl_getinfo($curl, CURLINFO_HTTP_CODE) === 200) {
return $response;
} else {
return '';
Expand Down

0 comments on commit b2e3eac

Please sign in to comment.