### Eclipse Workspace Patch 1.0 #P TYPO3v4 Index: t3lib/class.t3lib_befunc.php =================================================================== --- t3lib/class.t3lib_befunc.php (revision 9970) +++ t3lib/class.t3lib_befunc.php (working copy) @@ -2378,17 +2378,25 @@ case 'input': if (isset($value)) { if (t3lib_div::inList($theColConf['eval'], 'date')) { - $l = self::date($value) . - ' (' . - ($GLOBALS['EXEC_TIME'] - $value > 0 ? '-' : '') . - self::calcAge(abs($GLOBALS['EXEC_TIME'] - $value), $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.minutesHoursDaysYears')) . - ')'; + if((int) $value > 0) { + $l = self::date($value) . + ' (' . + ($GLOBALS['EXEC_TIME'] - $value > 0 ? '-' : '') . + self::calcAge(abs($GLOBALS['EXEC_TIME'] - $value), $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.minutesHoursDaysYears')) . + ')'; + } else { + $l = ''; + } } elseif (t3lib_div::inList($theColConf['eval'], 'time')) { $l = self::time($value, FALSE); } elseif (t3lib_div::inList($theColConf['eval'], 'timesec')) { $l = self::time($value); } elseif (t3lib_div::inList($theColConf['eval'], 'datetime')) { - $l = self::datetime($value); + if((int) $value > 0) { + $l = self::datetime($value); + } else { + $l = ''; + } } else { $l = $value; }