[BUGFIX] Fix PHP Warning in updateRefIndexTable()
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Database / ReferenceIndex.php
index 53f4ffa..fdbbd05 100644 (file)
@@ -1050,6 +1050,10 @@ class ReferenceIndex {
         * @return string Fields which could contain a relation
         */
        protected function fetchTableRelationFields($tableName) {
+               if (!isset($GLOBALS['TCA'][$tableName])) {
+                       return '';
+               }
+
                $fields = array();
 
                foreach ($GLOBALS['TCA'][$tableName]['columns'] as $field => $fieldDefinition) {