Follow-up to #15812: Add backend maintenance for login news - correction for deprecat...
authorSteffen Kamper <info@sk-typo3.de>
Tue, 28 Sep 2010 16:13:24 +0000 (16:13 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Tue, 28 Sep 2010 16:13:24 +0000 (16:13 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@8929 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/index.php

index df0879c..6f28795 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@
 
 2010-09-28  Steffen Kamper  <steffen@typo3.org>
 
+       * Follow-up to #15812: Add backend maintenance for login news - correction for deprecation call
        * Follow-up to #15812: Add backend maintenance for login news - added sprites for icon
 
 2010-09-28  Ingo Renner  <ingo@typo3.org>
index 5874ac9..d95c056 100644 (file)
@@ -556,13 +556,13 @@ class SC_index {
         *
         * @return      string          HTML content
         * @credits                     Idea by Jan-Hendrik Heuing
+        * @deprecated $GLOBALS['TYPO3_CONF_VARS']['BE']['loginNews'] is deprecated since 4.5. Use system news records instead.
         */
        function makeLoginNews() {
                $newsContent = '';
 
                $systemNews = $this->getSystemNews();
-               if (is_array($GLOBALS['TYPO3_CONF_VARS']['BE']['loginNews'])) {
-                       /** @deprecated since 4.5. Use system news records instead. */
+               if (count($GLOBALS['TYPO3_CONF_VARS']['BE']['loginNews'])) {
                        t3lib_div::logDeprecatedFunction();
 
                        $GLOBALS['TYPO3_CONF_VARS']['BE']['loginNews'] = array_merge(