Fix: No error when hour not provided

This commit is contained in:
Laurent Destailleur
2012-09-27 13:25:31 +02:00
parent 9d732b0876
commit a98de7ef02

View File

@@ -981,9 +981,9 @@ function dol_mktime($hour,$minute,$second,$month,$day,$year,$gm=false,$check=1)
//print "- ".$hour.",".$minute.",".$second.",".$month.",".$day.",".$year.",".$_SERVER["WINDIR"]." -";
// Clean parameters
if ($hour == -1) $hour=0;
if ($minute == -1) $minute=0;
if ($second == -1) $second=0;
if ($hour == -1 || empty($hour)) $hour=0;
if ($minute == -1 || empty($minute)) $minute=0;
if ($second == -1 || empty($second)) $second=0;
// Check parameters
if ($check)