[BUGFIX] Fixed Exception when updating the ReferenceIndex 39/46639/2
authorMichael Oehlhof <typo3@oehlhof.de>
Fri, 12 Feb 2016 23:49:19 +0000 (00:49 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 13 Feb 2016 14:38:49 +0000 (15:38 +0100)
Now there is no Exception if a table has no columns definition.

Resolves: #73419
Releases: master,7.6
Change-Id: Iedbdb3073f7b6a72baa7263966dfa3c493bdb89c
Reviewed-on: https://review.typo3.org/46639
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/Database/ReferenceIndex.php

index 31016c5..bb0b34f 100644 (file)
@@ -1102,7 +1102,7 @@ class ReferenceIndex
      */
     protected function fetchTableRelationFields($tableName)
     {
-        if (!isset($GLOBALS['TCA'][$tableName])) {
+        if (!isset($GLOBALS['TCA'][$tableName]['columns'])) {
             return '';
         }