From 1789d6f8b0853af9683bc54ff71ef0de8ea363f8 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 22 Feb 2004 19:55:53 +0000 Subject: [PATCH] =?UTF-8?q?Correction=20du=20probl=E8me=20:=20dans=20"conf?= =?UTF-8?q?iguration=20autre"=20quand=20je=20mets=20=E0=20jour=20une=20inf?= =?UTF-8?q?o,=20elle=20n'apparait=20plus=20dans=20la=20liste.=20Il=20s'agi?= =?UTF-8?q?ssait=20d'une=20r=E9gression=20suit=20a=20la=20simplification?= =?UTF-8?q?=20du=20code=20par=20l'utilisation=20de=20la=20fonction=20dolib?= =?UTF-8?q?arr=5Fset=5Fconst,=20le=20param=E8tre=20pass=E9=20pour=20visibl?= =?UTF-8?q?e=20=E9tait=200=20au=20lieu=20de=201.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/admin/const.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/admin/const.php b/htdocs/admin/const.php index 43433b325fd..5a370de7868 100644 --- a/htdocs/admin/const.php +++ b/htdocs/admin/const.php @@ -47,7 +47,7 @@ $typeconst=array('yesno','texte','chaine'); if ($HTTP_POST_VARS["action"] == 'update' || $HTTP_POST_VARS["action"] == 'add') { - if (! dolibarr_set_const($db, $HTTP_POST_VARS["constname"],$HTTP_POST_VARS["constvalue"],$typeconst[$HTTP_POST_VARS["consttype"]],0,isset($HTTP_POST_VARS["constnote"])?$HTTP_POST_VARS["constnote"]:'')); + if (! dolibarr_set_const($db, $HTTP_POST_VARS["constname"],$HTTP_POST_VARS["constvalue"],$typeconst[$HTTP_POST_VARS["consttype"]],1,isset($HTTP_POST_VARS["constnote"])?$HTTP_POST_VARS["constnote"]:'')); { print $db->error(); }