Fixed use of undefined variable in method map_subquery()
authorXavier Perseguers <typo3@perseguers.ch>
Wed, 1 Dec 2010 10:28:13 +0000 (10:28 +0000)
committerXavier Perseguers <typo3@perseguers.ch>
Wed, 1 Dec 2010 10:28:13 +0000 (10:28 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/dbal/trunk@40706 735d13b6-9817-0410-8766-e36946ffe9aa

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

index 4310c58..9c8ddc5 100644 (file)
@@ -4,6 +4,7 @@
 
 2010-12-01  Xavier Perseguers  <typo3@perseguers.ch>
 
+       * Fixed use of undefined variable $mapping in method map_subquery()
        * Follow-up for bug #16392: Native tables could not be retrieved anymore
        * Code cleanup
        * Fixed bug #16492: groupBy and orderBy fail on exec_query (thanks to Oguzhan Alan)
index 734887b..4cac7c2 100644 (file)
@@ -3586,7 +3586,7 @@ class ux_t3lib_DB extends t3lib_DB {
                                        $this->mapping[$mappingKey]['mapTableName'] =& $this->mapping[$v['table']]['mapTableName'];
                                }
                        }
-                       if ($mapping !== $v['table']) {
+                       if ($mappingKey !== $v['table']) {
                                $this->mapping[$mappingKey]['mapFieldNames'] =& $this->mapping[$v['table']]['mapFieldNames'];
                        }
                }