Fixed bug #5983: Undefined variable is used in t3lib_BEfunc::exec_foreign_table_where...
authorSteffen Gebert <steffen.gebert@typo3.org>
Fri, 24 Sep 2010 15:49:10 +0000 (15:49 +0000)
committerSteffen Gebert <steffen.gebert@typo3.org>
Fri, 24 Sep 2010 15:49:10 +0000 (15:49 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-2@8878 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_befunc.php

index 3da5340..0ea63a2 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-09-24  Steffen Gebert  <steffen@steffen-gebert.de>
+
+       * Fixed bug #5983: Undefined variable is used in t3lib_BEfunc::exec_foreign_table_where_query
+
 2010-09-24  Ernesto Baschny  <ernst@cron-it.de>
 
        * Fixed bug #15653: Only show upload comments that are newer than installed version in update function of EM
index d20a290..64fb1fc 100755 (executable)
@@ -2986,8 +2986,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'];