[BUGFIX] Do not show empty dates of system news
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Controller / LoginController.php
index 538b93d..3a4f1ae 100644 (file)
@@ -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']
             ];