Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
Access global order to avoid notice
Browse files Browse the repository at this point in the history
  • Loading branch information
ecartz committed Oct 16, 2020
1 parent 8e0838d commit 0ee99b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/modules/payment/paypal_standard.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ function confirmation() {
$curr_check = tep_db_query("SELECT currency FROM orders WHERE orders_id = " . (int)$order_id);
$curr = tep_db_fetch_array($curr_check);

if ( ($curr['currency'] != $order->info['currency']) || ($_SESSION['cartID'] != substr($_SESSION['cart_PayPal_Standard_ID'], 0, strlen($_SESSION['cartID']))) ) {
if ( ($curr['currency'] != $GLOBALS['order']->info['currency']) || ($_SESSION['cartID'] != substr($_SESSION['cart_PayPal_Standard_ID'], 0, strlen($_SESSION['cartID']))) ) {
$check_query = tep_db_query('SELECT orders_id FROM orders_status_history WHERE orders_id = ' . (int)$order_id . ' LIMIT 1');

if (tep_db_num_rows($check_query) < 1) {
Expand Down

0 comments on commit 0ee99b8

Please sign in to comment.