[BUGFIX] Allow editing of pages with language ID > 9
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Form / Element / InputSlugElement.php
index 28f1415..cfbf13b 100644 (file)
@@ -76,7 +76,7 @@ class InputSlugElement extends AbstractFormElement
         $resultArray = $this->initializeResultArray();
 
         $languageField = $GLOBALS['TCA'][$table]['ctrl']['languageField'];
-        $languageId = (int)($row[$languageField][0] ?? 0);
+        $languageId = (int)($row[$languageField] ?? 0);
         $baseUrl = $this->getPrefix($this->data['site'], $languageId);
 
         $itemValue = $parameterArray['itemFormElValue'];