* Fixed bug #7295: sysext/dbal/: Uninitialized variable in ->handler_getFromTableList...
authorMichael Stucki <michael.stucki@typo3.org>
Mon, 4 Feb 2008 11:30:47 +0000 (11:30 +0000)
committerMichael Stucki <michael.stucki@typo3.org>
Mon, 4 Feb 2008 11:30:47 +0000 (11:30 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3050 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/dbal/ChangeLog
typo3/sysext/dbal/class.ux_t3lib_db.php

index 8abec03..6a92f89 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-02-04  Michael Stucki  <michael@typo3.org>
+
+       * Fixed bug #7295: sysext/dbal/: Uninitialized variable in ->handler_getFromTableList() (Patch by Oliver Klee)
+
 2008-02-04  Oliver Hader  <oh@inpublica.de>
 
        * (feature) Added feature #5242: IRRE - Storage page for child records
index c93365b..a9f0114 100644 (file)
@@ -1,3 +1,7 @@
+2008-02-04  Michael Stucki  <michael@typo3.org>
+
+       * Fixed bug #7295: Uninitialized variable in ->handler_getFromTableList() (Patch by Oliver Klee)
+
 2007-05-30  Karsten Dambekalns <karsten@typo3.org>
 
        * Added default values and some usability improvements to cached info display in debug module (closes bug #3750)
index 5c67a70..d4130db 100644 (file)
@@ -2027,9 +2027,10 @@ class ux_t3lib_DB extends t3lib_DB {
                        $tableArray = $this->SQLparser->parseFromTables($_tableList);
 
                                // If success, traverse the tables:
-                       if (is_array($tableArray) && count($tableArray))        {
-                               foreach($tableArray as $vArray) {
+                       if (is_array($tableArray) && count($tableArray)) {
+                               $outputHandlerKey = '';
 
+                               foreach($tableArray as $vArray) {
                                                // Find handler key, select "_DEFAULT" if none is specifically configured:
                                        $handlerKey = $this->table2handlerKeys[$vArray['table']] ? $this->table2handlerKeys[$vArray['table']] : '_DEFAULT';