Fixed bug #11875: list module doesn't show '0' values (thanks to David Bruchmann...
authorRupert Germann <rupi@gmx.li>
Sat, 19 Sep 2009 19:00:48 +0000 (19:00 +0000)
committerRupert Germann <rupi@gmx.li>
Sat, 19 Sep 2009 19:00:48 +0000 (19:00 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5996 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_befunc.php

index 079e6b2..8fdb54b 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -14,6 +14,7 @@
        * Fixed bug #11988: Extension Manager is not translatable (part 6) (thanks to Christopher Stelmaszyk)
        * Fixed bug #11986: dynamic update of translation status im EM is broken
        * Fixed bug #11013: Generate Random Key still does not work (thanks to Marcus Krause)
+       * Fixed bug #11875: list module doesn't show '0' values (thanks to David Bruchmann and Bastian Waidelich)
 
 2009-09-18  Sebastian Kurfuerst  <sebastian@typo3.org>
 
index 6e988c2..2d284cd 100644 (file)
@@ -2218,7 +2218,7 @@ final class t3lib_BEfunc {
                                break;
                                case 'check':
                                        if (!is_array($theColConf['items']) || count($theColConf['items'])==1) {
-                                               $l = $value ? $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:yes') : '';
+                                               $l = $value ? $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:yes') : $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:no');
                                        } else {
                                                reset($theColConf['items']);
                                                $lA = Array();
@@ -2229,7 +2229,7 @@ final class t3lib_BEfunc {
                                        }
                                break;
                                case 'input':
-                                       if ($value) {
+                                       if (isset($value)) {
                                                if (t3lib_div::inList($theColConf['eval'], 'date')) {
                                                        $l = t3lib_BEfunc::date($value) .
                                                                ' (' .