Fix: Can not set delay to zero.

This commit is contained in:
Laurent Destailleur 2014-02-14 12:58:03 +01:00
parent 3e3c541e4c
commit 4b5748fd12

View File

@ -107,7 +107,7 @@ if ($action == 'update')
{
foreach($delays as $delay)
{
if (GETPOST($delay['code']))
if (GETPOST($delay['code']) != '')
{
dolibarr_set_const($db, $delay['code'], GETPOST($delay['code']), 'chaine', 0, '', $conf->entity);
}