diff --git a/htdocs/admin/const.php b/htdocs/admin/const.php index b630d405919..9cea6beda48 100644 --- a/htdocs/admin/const.php +++ b/htdocs/admin/const.php @@ -50,7 +50,7 @@ if ($_POST["action"] == 'add') $mesg='
'.$langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("Name")).'
'; $error++; } - if (empty($_POST["constvalue"])) + if ($_POST["constvalue"]=='') { $mesg='
'.$langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("Value")).'
'; $error++;