From 04d17c45f730c4f6448c6c78337d783c2c149962 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 21 Jan 2010 22:44:57 +0000 Subject: [PATCH] Fix pb with entity --- htdocs/admin/adherent.php | 2 +- htdocs/lib/admin.lib.php | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/htdocs/admin/adherent.php b/htdocs/admin/adherent.php index 362be580f6b..037491200ec 100644 --- a/htdocs/admin/adherent.php +++ b/htdocs/admin/adherent.php @@ -288,7 +288,7 @@ function form_constantes($tableau) print ''; print ''; print ''; - print ''; + print ''; print ''; print ""; diff --git a/htdocs/lib/admin.lib.php b/htdocs/lib/admin.lib.php index fcf6c78acac..f7f281aa9be 100644 --- a/htdocs/lib/admin.lib.php +++ b/htdocs/lib/admin.lib.php @@ -381,13 +381,14 @@ function dolibarr_set_const($db, $name, $value, $type='chaine', $visible=0, $not // Check parameters if (empty($name)) { - dol_print_error("Error: Call to function dolibarr_set_const with wrong parameters", LOG_ERR); + dol_print_error($db,"Error: Call to function dolibarr_set_const with wrong parameters", LOG_ERR); exit; } + //dol_syslog("dolibarr_set_const name=$name, value=$value type=$type, visible=$visible, note=$note entity=$entity"); + $db->begin(); - //dol_syslog("dolibarr_set_const name=$name, value=$value"); $sql = "DELETE FROM ".MAIN_DB_PREFIX."const"; $sql.= " WHERE ".$db->decrypt('name')." = '".addslashes($name)."'"; $sql.= " AND entity = ".$entity;