From cc78decc0cb09fc26949c1750b1d80f9abbc0d7e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 19 Mar 2024 10:43:59 +0100 Subject: [PATCH] Fix warning --- htdocs/public/payment/paymentok.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/public/payment/paymentok.php b/htdocs/public/payment/paymentok.php index b84fe84cc3c..0eb24d7b729 100644 --- a/htdocs/public/payment/paymentok.php +++ b/htdocs/public/payment/paymentok.php @@ -370,14 +370,14 @@ if (empty($TRANSACTIONID)) { } } if (empty($FinalPaymentAmt)) { - $FinalPaymentAmt = $_SESSION["FinalPaymentAmt"]; + $FinalPaymentAmt = empty($_SESSION["FinalPaymentAmt"]) ? '' : $_SESSION["FinalPaymentAmt"]; } if (empty($currencyCodeType)) { - $currencyCodeType = $_SESSION['currencyCodeType']; + $currencyCodeType = empty($_SESSION['currencyCodeType']) ? '' : $_SESSION['currencyCodeType']; } -// Seems used onyl by Paypal +// Seems used only by Paypal if (empty($paymentType)) { - $paymentType = $_SESSION["paymentType"]; + $paymentType = empty($_SESSION["paymentType"]) ? '' : $_SESSION["paymentType"]; } $fulltag = $FULLTAG;