fix warning message on install

This commit is contained in:
Florian HENRY 2021-01-07 17:51:45 +01:00
parent 007ae59788
commit 04d8a679a7

View File

@ -1975,7 +1975,7 @@ function dol_print_date($time, $format = '', $tzoutput = 'auto', $outputlangs =
{
global $conf, $langs;
if ($tzoutput == 'auto') {
if ($tzoutput == 'auto' && property_exists($conf,'tzuserinputkey')) {
$tzoutput = $conf->tzuserinputkey;
}