[BUGFIX] Unable to edit file metadata
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Resource / Hook / FileInfoHook.php
index c5ad4b4..c2cf8d3 100644 (file)
@@ -48,8 +48,8 @@ class FileInfoHook
     {
         $fileMetadataRecord = $propertyArray['row'];
         $fileObject = null;
-        if ($fileMetadataRecord['file'] > 0) {
-            $fileObject = ResourceFactory::getInstance()->getFileObject((int)$fileMetadataRecord['file']);
+        if (!empty($fileMetadataRecord['file']) && $fileMetadataRecord['file'][0] > 0) {
+            $fileObject = ResourceFactory::getInstance()->getFileObject((int)$fileMetadataRecord['file'][0]);
         }
 
         return $this->renderFileInformationContent($fileObject);