Project

General

Profile

Bug #16956 » patch_bug_0004943.txt

Administrator Admin, 2007-02-09 09:30

 
Index: D:/localhost/htdocs/svn/t3lib/class.t3lib_befunc.php
===================================================================
--- D:/localhost/htdocs/svn/t3lib/class.t3lib_befunc.php (revision 2018)
+++ D:/localhost/htdocs/svn/t3lib/class.t3lib_befunc.php (working copy)
@@ -1840,9 +1840,10 @@
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 (strcmp($t,'')) $tA[] = $t;
foreach ($altFields as $fN) {
- $t = $tA[] = trim(strip_tags($row[$fN]));
+ $t = trim(strip_tags($row[$fN]));
+ if (strcmp($t,'')) $tA[] = $t;
if (strcmp($t,'') && !$TCA[$table]['ctrl']['label_alt_force']) break;
}
if ($TCA[$table]['ctrl']['label_alt_force']) $t=implode(', ',$tA);
(2-2/2)