From: Michael Stucki Date: Mon, 4 Feb 2008 11:30:47 +0000 (+0000) Subject: * Fixed bug #7295: sysext/dbal/: Uninitialized variable in ->handler_getFromTableList... X-Git-Tag: TYPO3_4-2-0beta1~42 X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/commitdiff_plain/85c9df30dd985e561f22121b8811f7a0fb7f4398?ds=sidebyside * Fixed bug #7295: sysext/dbal/: Uninitialized variable in ->handler_getFromTableList() (Patch by Oliver Klee) git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3050 709f56b5-9817-0410-a4d7-c38de5d9e867 --- diff --git a/ChangeLog b/ChangeLog index 8abec031cba4..6a92f8938171 100755 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-02-04 Michael Stucki + + * Fixed bug #7295: sysext/dbal/: Uninitialized variable in ->handler_getFromTableList() (Patch by Oliver Klee) + 2008-02-04 Oliver Hader * (feature) Added feature #5242: IRRE - Storage page for child records diff --git a/typo3/sysext/dbal/ChangeLog b/typo3/sysext/dbal/ChangeLog index c93365bdc942..a9f01146fb56 100644 --- a/typo3/sysext/dbal/ChangeLog +++ b/typo3/sysext/dbal/ChangeLog @@ -1,3 +1,7 @@ +2008-02-04 Michael Stucki + + * Fixed bug #7295: Uninitialized variable in ->handler_getFromTableList() (Patch by Oliver Klee) + 2007-05-30 Karsten Dambekalns * Added default values and some usability improvements to cached info display in debug module (closes bug #3750) diff --git a/typo3/sysext/dbal/class.ux_t3lib_db.php b/typo3/sysext/dbal/class.ux_t3lib_db.php index 5c67a7045acf..d4130db4063d 100644 --- a/typo3/sysext/dbal/class.ux_t3lib_db.php +++ b/typo3/sysext/dbal/class.ux_t3lib_db.php @@ -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';