From 695cef55d9a7f8ed7d731975bd46afd2f8c15951 Mon Sep 17 00:00:00 2001 From: Maxime Kohlhaas <maxime@atm-consulting.fr> Date: Thu, 10 Oct 2013 09:31:47 +0200 Subject: [PATCH] Rem duplicate code --- htdocs/expedition/fiche.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/htdocs/expedition/fiche.php b/htdocs/expedition/fiche.php index c586329d4c9..f869bb24715 100644 --- a/htdocs/expedition/fiche.php +++ b/htdocs/expedition/fiche.php @@ -70,11 +70,6 @@ $hidedesc = (GETPOST('hidedesc','int') ? GETPOST('hidedesc','int') : (! empty( $hideref = (GETPOST('hideref','int') ? GETPOST('hideref','int') : (! empty($conf->global->MAIN_GENERATE_DOCUMENTS_HIDE_REF) ? 1 : 0)); $object = new Expedition($db); -// Load object -if ($id > 0 || ! empty($ref)) -{ - $ret=$object->fetch($id, $ref); -} // Load object if ($id > 0 || ! empty($ref)) @@ -95,8 +90,6 @@ if ($action == 'add') { $error=0; - $object = new Expedition($db); - $db->begin(); $object->note = GETPOST('note','alpha'); -- GitLab