Commit 12291168 authored by Frank Nägler's avatar Frank Nägler Committed by Andreas Fernandez
Browse files

[BUGFIX] Prevent exception on backend login screen

This patch adds an int cast for the second parameter of the date function
in the sys_news handling.

Resolves: #84764
Releases: master, 8.7
Change-Id: I4adc1ec8c49f4ef7ea744933446d01f943daf5b4

Reviewed-by: Wouter Wolters's avatarWouter Wolters <>
Tested-by: default avatarTYPO3com <>
Reviewed-by: Richard Haeser's avatarRichard Haeser <>
Reviewed-by: Susanne Moog's avatarSusanne Moog <>
Tested-by: Susanne Moog's avatarSusanne Moog <>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <>
parent a0d0752e
......@@ -432,7 +432,7 @@ class LoginController implements LoggerAwareInterface
foreach ($systemNewsRecords as $systemNewsRecord) {
$systemNews[] = [
'date' => date($GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'], $systemNewsRecord['crdate']),
'date' => date($GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'], (int)$systemNewsRecord['crdate']),
'header' => $systemNewsRecord['title'],
'content' => $systemNewsRecord['content']
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment