[BUGFIX] t3lib_div::debugRows doesn't return data
authorSebastian Michaelsen <sebastian.gebhard@googlemail.com>
Mon, 11 Jul 2011 08:48:40 +0000 (10:48 +0200)
committerXavier Perseguers <typo3@perseguers.ch>
Mon, 11 Jul 2011 09:02:35 +0000 (11:02 +0200)
In TYPO3 4.5 t3lib_div::debugRows() was deprecated
and moved to t3lib_utility_Debug::debugRows().
The problem is, that t3lib_utility_Debug::debugRows()
is just called but not returned, despite the fact
that debugRows() offers an option $returnHTML to
return an HTML table.
So in the (a bit unlikely) case someone relies on
values returned by t3lib_div::debugRows(), 4.5 broke
his code.

Adding a simple "return" will solve this problem.

Change-Id: I4e328db1b78975a7baed386a316dc50f00a0ac40
Resolves: #28085
Releases: 4.6, 4.5
Reviewed-on: http://review.typo3.org/3238
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
t3lib/class.t3lib_div.php

index 84feeda..6a8b285 100644 (file)
@@ -3383,7 +3383,7 @@ final class t3lib_div {
         */
        public static function debugRows($rows, $header = '', $returnHTML = FALSE) {
                self::logDeprecatedFunction();
-               t3lib_utility_Debug::debugRows($rows, $header, $returnHTML);
+               return t3lib_utility_Debug::debugRows($rows, $header, $returnHTML);
        }