Valider 702f48f9 rédigé par nicod's avatar nicod
Parcourir les fichiers

Splitter la chaine si c'en est bien une

parent d4e9b67b
Chargement en cours
Chargement en cours
Chargement en cours
Chargement en cours
+4 −2
Numéro de ligne d'origine Numéro de ligne de diff Ligne de diff
@@ -17,6 +17,9 @@ function prix_option_produit_ht($objet, $id_objet, $options, $ligne) {
	if(isset($options['options'])) {
		$options = $options['options'];
	}
	if(is_string($options)) {
		$options = explode('|', trim($options, '|'));
	}
	
	static $cache;
	$hash = md5(json_encode(array($objet, $id_objet, $options, $ligne)));
@@ -24,7 +27,6 @@ function prix_option_produit_ht($objet, $id_objet, $options, $ligne) {
		return $cache[$hash];
	}
	
	$options = explode('|',trim($options,'|'));
	$prix_ht = $ligne['prix_ht'];
	foreach ($options as $option) {
		$prix_ht += sql_getfetsel(