Fix: select_date accepts -1 or '' but not 0

This commit is contained in:
Laurent Destailleur 2014-05-23 20:54:23 +02:00
parent a63d085181
commit 23e951ff2a

View File

@ -1407,7 +1407,7 @@ if ($action == 'create')
}
else
{
$datepropal=empty($conf->global->MAIN_AUTOFILL_DATE)?-1:0;
$datepropal=empty($conf->global->MAIN_AUTOFILL_DATE)?-1:'';
$form->select_date($datepropal,'liv_','','','',"addprop");
}
print '</td></tr>';