Skip to content

Commit

Permalink
Update securetrading_ws.php
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCartpenter authored Dec 27, 2023
1 parent b7881f6 commit 6b4c8ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions upload/admin/model/extension/payment/securetrading_ws.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,9 @@ public function increaseRefundedAmount(int $order_id, float $amount): void {
*
* @param array $data
*
* @return void
* @return string
*/
public function getCsv(array $data): bool|array {
public function getCsv(array $data): string {
$ch = curl_init();

$post_data = [];
Expand Down Expand Up @@ -393,7 +393,7 @@ public function getCsv(array $data): bool|array {
curl_close($ch);

if ((empty($response) || $response === 'No records found for search') || (preg_match('/401 Authorization Required/', $response))) {
return false;
return '';
} else {
return $response;
}
Expand Down

0 comments on commit 6b4c8ac

Please sign in to comment.