From 1508a8a5d78a6a5778c84d1af576cb343e4f9f95 Mon Sep 17 00:00:00 2001 From: Quentin Montant Date: Wed, 20 Nov 2013 11:31:02 +0100 Subject: [PATCH] "---
" string is now removed correctly from the end of customization data text --- classes/PaymentModule.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/classes/PaymentModule.php b/classes/PaymentModule.php index 69520408e..031b719bf 100644 --- a/classes/PaymentModule.php +++ b/classes/PaymentModule.php @@ -369,7 +369,9 @@ abstract class PaymentModuleCore extends Module $customization_text .= sprintf(Tools::displayError('%d image(s)'), count($customization['datas'][Product::CUSTOMIZE_FILE])).'
'; $customization_text .= '---
'; } - $customization_text = rtrim($customization_text, '---
'); + if(substr($customization_text, -9) == '---
'){ + $customization_text = substr($customization_text, 0, -9); + } $customization_quantity = (int)$product['customization_quantity']; $products_list .=