Skip to content

Commit

Permalink
Updated addReport() order recurring info lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCartpenter committed Jun 3, 2024
1 parent 44eb885 commit 280b5d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upload/catalog/controller/extension/payment/paypal.php
Original file line number Diff line number Diff line change
Expand Up @@ -4320,7 +4320,7 @@ public function addReport(&$route, &$args): void {

$order_recurring_info = $this->model_checkout_recurring->getOrderRecurring($order_recurring_id);

if ($order_recurring_info && $order_recurring_info['order_id'] == $this->session->data['order_id']) {
if ($order_recurring_info && $this->cart->hasSubscription()) {
if (isset($this->request->server['HTTP_X_REAL_IP'])) {
$ip = $this->request->server['HTTP_X_REAL_IP'];
} elseif (oc_get_ip()) {
Expand Down

0 comments on commit 280b5d4

Please sign in to comment.