"---<br />" string is now removed correctly from the end of customization data text

This commit is contained in:
Quentin Montant
2013-11-20 13:30:47 +01:00
parent 1508a8a5d7
commit 0410378bd3
3 changed files with 18 additions and 5 deletions
+2 -3
View File
@@ -369,9 +369,8 @@ abstract class PaymentModuleCore extends Module
$customization_text .= sprintf(Tools::displayError('%d image(s)'), count($customization['datas'][Product::CUSTOMIZE_FILE])).'<br />';
$customization_text .= '---<br />';
}
if(substr($customization_text, -9) == '---<br />'){
$customization_text = substr($customization_text, 0, -9);
}
$customization_text = Tools::rtrimString($customization_text, '---<br />');
$customization_quantity = (int)$product['customization_quantity'];
$products_list .=