diff --git a/htdocs/fichinter/card-rec.php b/htdocs/fichinter/card-rec.php index 8b258ebbf6e..08600d71ee5 100644 --- a/htdocs/fichinter/card-rec.php +++ b/htdocs/fichinter/card-rec.php @@ -404,8 +404,7 @@ if ($action == 'create') { $var=true; while ($i < $num) { $objp = $db->fetch_object($result); - $var=!$var; - print ""; + print ''; // Show product and description @@ -733,10 +732,8 @@ if ($action == 'create') { $num = count($object->lines); $i = 0; - $var=true; while ($i < $num) { - $var=!$var; - + // Show product and description if (isset($object->lines[$i]->product_type)) $type=$object->lines[$i]->product_type; @@ -748,7 +745,7 @@ if ($action == 'create') { if (! empty($objp->date_end)) $type=1; // Show line - print ""; + print ''; print ''; $text = img_object($langs->trans('Service'), 'service'); print $text.' '.nl2br($object->lines[$i]->desc); @@ -879,12 +876,10 @@ if ($action == 'create') { // les filtres à faire ensuite if ($num > 0) { - $var=true; while ($i < min($num, $limit)) { $objp = $db->fetch_object($resql); - $var=!$var; - print ""; + print ''; print ''; print img_object($langs->trans("ShowIntervention"), "intervention").' '.$objp->titre; print "\n"; @@ -959,7 +954,7 @@ if ($action == 'create') { } } } else - print ''.$langs->trans("NoneF").''; + print ''.$langs->trans("NoneF").''; print ""; $db->free($resql);