From cc6b14543f5c9207b6a911f1995fc088c50bb18a Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 30 Nov 2007 12:40:10 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20la=20virgule=20n'=E9tait=20pas=20modifi?= =?UTF-8?q?=E9e=20en=20point=20lors=20de=20la=20division?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/html.form.class.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index 4407dec6955..7c23444845b 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -679,13 +679,16 @@ class Form { if ($conf->use_ajax && $conf->global->COMPANY_USE_SEARCH_TO_SELECT) { - if ($selected) $obj = $this->db->fetch_object($resql); - $socid = $obj->rowid?$obj->rowid:''; - + $socid = 0; + if ($selected) + { + $obj = $this->db->fetch_object($resql); + $socid = $obj->rowid?$obj->rowid:''; + } print ''; print '
'; print '
'; - if ($obj->rowid == 0) + if ($socid == 0) { print ''; }