diff --git a/htdocs/admin/dict.php b/htdocs/admin/dict.php index bb25f6fbe91..0ae24a7f5a2 100644 --- a/htdocs/admin/dict.php +++ b/htdocs/admin/dict.php @@ -283,10 +283,10 @@ if ($_POST["actionadd"] || $_POST["actionmodify"]) dolibarr_syslog("dict actionmodify sql=".$sql); //print $sql; - $result = $db->query($sql); - if (!$result) + $resql = $db->query($sql); + if (! $resql) { - dolibarr_print_error($db); + $msg=$db->error(); } } @@ -400,6 +400,7 @@ if ($_GET["id"]) //print $sql; $fieldlist=split(',',$tabfield[$_GET["id"]]); + print '