[BUGFIX] Fix overloading variable name in TemplateService 91/49691/3
authorGeorg Ringer <georg.ringer@gmail.com>
Wed, 31 Aug 2016 15:43:27 +0000 (17:43 +0200)
committerBenni Mack <benni@typo3.org>
Wed, 31 Aug 2016 16:08:05 +0000 (18:08 +0200)
The variable $row is used and must not be used for fetching records.

Resolves: #77711
Releases: master
Change-Id: Ib74df17f432c7cb68549158ed4bc611b2a3de8a0
Reviewed-on: https://review.typo3.org/49691
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Bamboo TYPO3com <info@typo3.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/core/Classes/TypoScript/TemplateService.php

index c0c9c52..0ef6834 100644 (file)
@@ -730,8 +730,8 @@ class TemplateService
                     ->execute();
                 // make it an associative array with the UID as key
                 $subTemplates = [];
-                while ($row = $queryResult->fetch()) {
-                    $subTemplates[(int)$row['uid']] = $row;
+                while ($rowItem = $queryResult->fetch()) {
+                    $subTemplates[(int)$rowItem['uid']] = $rowItem;
                 }
                 // Traversing list again to ensure the sorting of the templates
                 foreach ($basedOnIds as $id) {