Fix reported "Undefined index: FirstDayOfCalendar"

Reported on error reporting server

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2021-07-19 18:51:17 +02:00
parent 814da7d73d
commit 2389c6a07b
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -709,7 +709,7 @@ class Header
$maxInputVarsValue = $maxInputVars === false || $maxInputVars === '' ? 'false' : (int) $maxInputVars;
return $this->template->render('javascript/variables', [
'first_day_of_calendar' => $cfg['FirstDayOfCalendar'],
'first_day_of_calendar' => $cfg['FirstDayOfCalendar'] ?? 0,
'theme_image_path' => $PMA_Theme !== null ? $PMA_Theme->getImgPath() : '',
'max_input_vars' => $maxInputVarsValue,
]);