From c329ca1586017949b6dbe664ac06cb1e2fabbb21 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 21 Apr 2006 13:55:39 +0000 Subject: [PATCH] bugfix --- htdocs/comm/fiche.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htdocs/comm/fiche.php b/htdocs/comm/fiche.php index 61681ed2b34..17fb76b81f9 100644 --- a/htdocs/comm/fiche.php +++ b/htdocs/comm/fiche.php @@ -345,12 +345,14 @@ if ($socidp > 0) if ($resql) { $num = $db->num_rows($resql); - $obj = $db->fetch_object($resql); + $objsoc = $db->fetch_object($resql); print $objsoc->nb?($objsoc->nb):$langs->trans("NoOtherDeliveryAdress"); } - else { + else + { dolibarr_print_error($db); } + print ''; print '';