From e43627d9ca5254e29edf04a8bb7d3ecec185163f Mon Sep 17 00:00:00 2001 From: Sumit Panwar Date: Wed, 2 Oct 2024 14:51:42 +0530 Subject: [PATCH] Fixed: notices where no string is passed in the Tools::DisplayError() in the PaymentOrder.php --- classes/PaymentModule.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/PaymentModule.php b/classes/PaymentModule.php index 9c2cfb082..b854b8281 100644 --- a/classes/PaymentModule.php +++ b/classes/PaymentModule.php @@ -191,14 +191,14 @@ abstract class PaymentModuleCore extends Module if (!$this->active) { PrestaShopLogger::addLog('PaymentModule::validateOrder - Module is not active', 3, null, 'Cart', (int)$id_cart, true); - die(Tools::displayError()); + die(Tools::displayError('Error in processing order. Payment module is not active.')); } // Does order already exists ? if (Validate::isLoadedObject($this->context->cart) && $this->context->cart->OrderExists() == false) { if ($secure_key !== false && $secure_key != $this->context->cart->secure_key) { PrestaShopLogger::addLog('PaymentModule::validateOrder - Secure key does not match', 3, null, 'Cart', (int)$id_cart, true); - die(Tools::displayError()); + die(Tools::displayError('Error processing order. Secure key does not match.')); } // For each package, generate an order