Commit bd6ab528 authored by Georg Ringer's avatar Georg Ringer
Browse files

[BUGFIX] Do not show empty dates of system news

If the creation date of a system news is cleared by an editor, the
rendered news must skip the date.

Resolves: #94576
Releases: master, 10.4
Change-Id: I93958ba0e858960dba4b99c0123cedce7dba5539

Tested-by: Nikita Hovratov's avatarNikita Hovratov <>
Tested-by: core-ci's avatarcore-ci <>
Tested-by: default avatarGuido Schmechel <>
Tested-by: Christian Kuhn's avatarChristian Kuhn <>
Tested-by: Torben Hansen's avatarTorben Hansen <>
Tested-by: Georg Ringer's avatarGeorg Ringer <>
Reviewed-by: Nikita Hovratov's avatarNikita Hovratov <>
Reviewed-by: default avatarGuido Schmechel <>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <>
Reviewed-by: Torben Hansen's avatarTorben Hansen <>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <>
parent 6db43aa0
......@@ -467,7 +467,7 @@ class LoginController
foreach ($systemNewsRecords as $systemNewsRecord) {
$systemNews[] = [
'uid' => $systemNewsRecord['uid'],
'date' => date($GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'], (int)$systemNewsRecord['crdate']),
'date' => $systemNewsRecord['crdate'] ? date($GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'], (int)$systemNewsRecord['crdate']) : '',
'header' => $systemNewsRecord['title'],
'content' => $systemNewsRecord['content']
......@@ -37,6 +37,6 @@
<f:section name="Item">
<p id="loginNewsItem-{item.uid}" class="typo3-login-news-heading">{item.header}</p>
<p class="text-muted"><span class="sr-only"><f:translate key=""/></span>{}</p>
<f:if condition="{}"><p class="text-muted"><span class="sr-only"><f:translate key=""/></span>{}</p></f:if>
Markdown is supported
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