Fixed bug #13591: Full search causes error if TCA has tables without any columns...
authorBenni Mack <benni.mack@typo3.org>
Fri, 26 Feb 2010 14:27:38 +0000 (14:27 +0000)
committerBenni Mack <benni.mack@typo3.org>
Fri, 26 Feb 2010 14:27:38 +0000 (14:27 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@7048 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_fullsearch.php

index 0306d47..db71850 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2010-02-26  Benjamin Mack  <benni@typo3.org>
 
+       * Fixed bug #13591: Full search causes error if TCA has tables without any columns (Thanks to Fabrizio Branca)
        * Fixed bug #13493: Cleanup return value in t3lib_userauthgroup check() (Thanks to Georg Ringer)
        * Fixed bug #12849: Element wizard & web_list.allowedNewTables doesn't respect hiding pages (Thanks to Georg Ringer)
        * Fixed bug #13611: Replace calls to t3lib_div:: within t3lib_div to self:: due to performance reasons (Thanks to Georg Ringer)
index bb6e0b1..f407950 100644 (file)
@@ -574,6 +574,11 @@ class t3lib_fullsearch {
                                        // Get fields list
                                t3lib_div::loadTCA($table);
                                $conf=$TCA[$table];
+                               
+                                       // avoid querying tables with no columns
+                               if (empty($conf['columns'])) {
+                                       continue;
+                               }
 
                                reset($conf['columns']);
                                $list=array();