Skip to content

Commit

Permalink
fix: replace uninitialized var
Browse files Browse the repository at this point in the history
  • Loading branch information
soleilcot committed Jun 15, 2023
1 parent 54084c0 commit 658cce9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cron/OrderFraudStatus.php
Original file line number Diff line number Diff line change
@@ -160,7 +160,7 @@ public function updateOrdersFromNoFraudApiResult($orders, $storeId)
$this->orderProcessor->updateOrderStatusFromNoFraudResult($newStatus, $order, $response);
}
} else {
$nofraudErrorDecision = $resultMap['http']['response']['body']['Errors'] ?? "";
$nofraudErrorDecision = $response['http']['response']['body']['Errors'] ?? "";
$newStatus = $this->orderProcessor->getCustomOrderStatus($response['http']['response'], $storeId);
if (isset($nofraudErrorDecision) && !empty($nofraudErrorDecision)) {
if (empty($newStatus)) {

0 comments on commit 658cce9

Please sign in to comment.