Fix warning

This commit is contained in:
Laurent Destailleur
2021-01-11 16:07:02 +01:00
parent 507bb5b0d9
commit f6de607889

View File

@@ -1977,7 +1977,7 @@ function dol_print_date($time, $format = '', $tzoutput = 'auto', $outputlangs =
global $conf, $langs;
if ($tzoutput == 'auto') {
$tzoutput = $conf->tzuserinputkey;
$tzoutput = (empty($conf) ? 'tzserver' : $conf->tzuserinputkey);
}
// Clean parameters