From 48a765b42dd1e3ad477302047547d4aea10a69a0 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 7 Dec 2005 00:55:11 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Libell=E9=20forme=20juridique=20apres=20?= =?UTF-8?q?premiere=20install?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/html.form.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index af67f6a3850..96ab6c5b964 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -996,6 +996,8 @@ class Form { global $langs; + if (! $code) return ''; + $sql = "SELECT libelle FROM ".MAIN_DB_PREFIX."c_forme_juridique"; $sql.= " WHERE code='$code';";