[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:40:07 +0000 (11:40 +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: I237b68ad4809df9ad9718f9fd1d8842e60c7d21c
Resolves: #28085
Releases: 4.6, 4.5
Reviewed-on: http://review.typo3.org/3240
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
t3lib/class.t3lib_div.php

index e484bae..086c182 100644 (file)
@@ -3764,7 +3764,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);
        }