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

This commit is contained in:
Quentin Montant committed 2013-11-20 11:31:02 +01:00
1 parent 33b8703d24
commit 1508a8a5d7
1 file changed
+3 -1
+3 -1
View File
@@ -369,7 +369,9 @@ abstract class PaymentModuleCore extends Module
$customization_text .= sprintf(Tools::displayError('%d image(s)'), count($customization['datas'][Product::CUSTOMIZE_FILE])).'<br />'; $customization_text .= sprintf(Tools::displayError('%d image(s)'), count($customization['datas'][Product::CUSTOMIZE_FILE])).'<br />';
$customization_text .= '---<br />'; $customization_text .= '---<br />';
} }
$customization_text = rtrim($customization_text, '---<br />'); if(substr($customization_text, -9) == '---<br />'){
$customization_text = substr($customization_text, 0, -9);
}
$customization_quantity = (int)$product['customization_quantity']; $customization_quantity = (int)$product['customization_quantity'];
$products_list .= $products_list .=