[TYPO3-core] Bugfix class.db_list_extra.inc
Wolfgang Klinger
wolfgang at stufenlos.net
Thu Feb 9 14:45:56 CET 2006
*hiya!*
There's a missing 'is_array' check in this class
that leads possibly to some warning messages.
I think that's something that does not require a review, right?
kind regards
Wolfgang
-------------- next part --------------
--- TYPO3core/typo3/class.db_list_extra.inc 2006-02-09 13:23:04.000000000 +0100
+++ TYPO3core_testing/typo3/class.db_list_extra.inc 2006-02-09 14:36:26.000000000 +0100
@@ -1064,9 +1064,11 @@
// Compile information for title tag:
$infoData=array();
+ if (is_array($rows)) {
foreach($rows as $row) {
$infoData[]=$row['tablename'].':'.$row['recuid'].':'.$row['field'];
}
+ }
return count($infoData) ? '<a href="#" onclick="'.htmlspecialchars('top.launchView(\''.$table.'\', \''.$uid.'\'); return false;').'" title="'.htmlspecialchars(t3lib_div::fixed_lgd(implode(' / ',$infoData),100)).'">'.count($infoData).'</a>' : '';
}
More information about the TYPO3-team-core
mailing list