From 283d82432b7612251e51f1dce38058e55eeb9729 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Thu, 16 Dec 2010 18:26:14 +0000 Subject: [PATCH] Fix: uniformize code --- htdocs/compta/facture.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index b3530aaf76f..10c58e97795 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -695,10 +695,7 @@ if ($_POST['action'] == 'add' && $user->rights->facture->creer) $result=$srcobject->fetch($object->origin_id); if ($result > 0) { - // TODO mutualiser - $lines = $srcobject->lignes; - if (sizeof($srcobject->lines)) $lines = $srcobject->lines; - if (empty($lines) && method_exists($srcobject,'fetch_lignes')) $lines = $srcobject->fetch_lignes(); + $lines = $srcobject->lines; if (empty($lines) && method_exists($srcobject,'fetch_lines')) $lines = $srcobject->fetch_lines(); for ($i = 0 ; $i < sizeof($lines) ; $i++)