[BUGFIX] Two wrong conditions in FormEngine expansion
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Form / FieldControl / AddRecord.php
index 876ddd4..0f197ef 100644 (file)
@@ -68,7 +68,10 @@ class AddRecord extends AbstractNode
         if (isset($options['pid'])) {
             // pid configured in options - use it
             $pid = $options['pid'];
-        } elseif (isset($GLOBALS['TCA'][$table]['ctrl']['rootLevel']) && (int)$GLOBALS['TCA'][$table]['ctrl'] === 1) {
+        } elseif (
+            isset($GLOBALS['TCA'][$table]['ctrl']['rootLevel'])
+            && (int)$GLOBALS['TCA'][$table]['ctrl']['rootLevel'] === 1
+        ) {
             // Target table can only exist on root level - set 0 as pid
             $pid = 0;
         }