diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php index d9d46592534c126c6893f4af6972888476039028..4800e934b0b04508569033ac65e671c28b7c5202 100644 --- a/htdocs/comm/propal.php +++ b/htdocs/comm/propal.php @@ -1360,8 +1360,12 @@ if ($id > 0 || ! empty($ref)) print '<table class="noborder" width="100%">'; $result = $propal->getLinesArray(); - $propal->print_title_list(); - $propal->printLinesList(); + + if (!empty($propal->lines)) + { + $propal->print_title_list(); + $propal->printLinesList(); + } /* diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index ebc6fdf4c6e58c99898bd0b2bb2fe4b37f1bb643..d32de3c539db6b8545171341c7379fb0c662d174 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -1644,8 +1644,12 @@ else print '<table class="noborder" width="100%">'; $result = $commande->getLinesArray(); - $commande->print_title_list(); - $commande->printLinesList(); + + if (!empty($commande->lines)) + { + $commande->print_title_list(); + $commande->printLinesList(); + } $numlines=sizeof($commande->lines);