Project

General

Profile

Bug #17057 » 0005094_1.patch

Administrator Admin, 2007-02-28 22:02

View differences:

typo3_src-4.1.0RC2/t3lib/class.t3lib_befunc.php 2007-02-28 22:01:14.000000000 +0100
if ($TCA[$table]['ctrl']['label_alt'] && ($TCA[$table]['ctrl']['label_alt_force'] || !strcmp($t,''))) {
$altFields=t3lib_div::trimExplode(',',$TCA[$table]['ctrl']['label_alt'],1);
$tA=array();
$tA[]=$t;
if ($TCA[$table]['ctrl']['label_alt_force']) {
foreach ($altFields as $fN) {
$t = trim(strip_tags($row[$fN]));
if (!empty($t)) $tA[] = $t;
if (strcmp($t,'')) {
$tA[]=$t;
}
foreach ($altFields as $fN) {
$t = trim(strip_tags($row[$fN]));
if (strcmp($t,'')) {
if (!$TCA[$table]['ctrl']['label_alt_force']) {
break;
}
$tA[] = t3lib_BEfunc::getProcessedValue($table,$fN,$t);
}
}
if ($TCA[$table]['ctrl']['label_alt_force']) {
$t=implode(', ',$tA);
}
}
(2-2/5)