diff --git a/htdocs/comm/index.php b/htdocs/comm/index.php index 411738f9850..a10a76e2619 100644 --- a/htdocs/comm/index.php +++ b/htdocs/comm/index.php @@ -136,12 +136,13 @@ if ($conf->propal->enabled) { { $obj = $db->fetch_object(); $var=!$var; - print "rowid."\">".img_object($langs->trans("ShowPropal"),"propal")." ".$obj->ref."".$obj->nom."".price($obj->price).""; + print ''."rowid."\">".img_object($langs->trans("ShowPropal"),"propal")." ".$obj->ref."".$obj->nom."".price($obj->price).""; $i++; $total += $obj->price; } if ($total>0) { - print "".$langs->trans("Total")."".price($total).""; + $var=!$var; + print '".$langs->trans("Total")."".price($total).""; } print "
"; } @@ -174,7 +175,7 @@ if ($conf->commande->enabled) while ($i < $num) { $obj = $db->fetch_object(); - print "rowid\">".img_object($langs->trans("ShowOrder"),"order")." ".$obj->ref.""; + print "rowid\">".img_object($langs->trans("ShowOrder"),"order")." ".$obj->ref.""; print ''.$obj->nom.''; $i++; $var=!$var;