Fixed bug #5983: Undefined variable is used in t3lib_BEfunc::exec_foreign_table_where...
authorSteffen Gebert <steffen.gebert@typo3.org>
Sat, 18 Sep 2010 13:11:42 +0000 (13:11 +0000)
committerSteffen Gebert <steffen.gebert@typo3.org>
Sat, 18 Sep 2010 13:11:42 +0000 (13:11 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@8809 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_befunc.php

index 435e466..15d9709 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-09-18  Steffen Gebert  <steffen@steffen-gebert.de>
+
+       * Fixed bug #5983: Undefined variable is used in t3lib_BEfunc::exec_foreign_table_where_query (Thanks to Oliver Klee)
+
 2010-09-18  Benjamin Mack  <benni@typo3.org>
 
        * Fixed bug #11415 - Misleading info: No workspaces found!
index 6d96c11..7e25004 100644 (file)
@@ -3169,8 +3169,8 @@ final class t3lib_BEfunc {
        public static function exec_foreign_table_where_query($fieldValue, $field = '', $TSconfig = array(), $prefix = '') {
                global $TCA;
 
+               $foreign_table = $fieldValue['config'][$prefix . 'foreign_table'];
                t3lib_div::loadTCA($foreign_table);
-               $foreign_table = $fieldValue['config'][$prefix.'foreign_table'];
                $rootLevel = $TCA[$foreign_table]['ctrl']['rootLevel'];
 
                $fTWHERE = $fieldValue['config'][$prefix.'foreign_table_where'];