fix warning

This commit is contained in:
Florian HENRY
2021-03-02 22:55:43 +01:00
parent 34d95dcd2f
commit 30c6e268a1
3 changed files with 2 additions and 2 deletions

View File

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