[BUGFIX] Remove warnings in ImportExportController.php 88/30888/2
authorNicole Cordes <typo3@cordes.co>
Mon, 5 May 2014 20:21:49 +0000 (22:21 +0200)
committerMarkus Klein <klein.t3@mfc-linz.at>
Thu, 19 Jun 2014 17:11:22 +0000 (19:11 +0200)
This patch adds cleanup to prevent warnings when accessing the
import/export module.

Resolves: #58534
Releases: 6.3, 6.2
Change-Id: I1e1afbea07b0c8e8c4bc29d25739882907c79b4b
Reviewed-on: https://review.typo3.org/30888
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/sysext/impexp/Classes/Controller/ImportExportController.php

index af60b43..925cc5b 100644 (file)
@@ -775,7 +775,10 @@ class ImportExportController extends \TYPO3\CMS\Backend\Module\BaseScriptClass {
                if (!empty($thumbnailFiles)) {
                        array_unshift($thumbnailFiles, '');
                }
-               $thumbnail = $this->getFile($inData['meta']['thumbnail']);
+               $thumbnail = NULL;
+               if (!empty($inData['meta']['thumbnail'])) {
+                       $thumbnail = $this->getFile($inData['meta']['thumbnail']);
+               }
                $saveFolder = $this->getDefaultImportExportFolder();
 
                $row[] = '
@@ -1459,7 +1462,7 @@ class ImportExportController extends \TYPO3\CMS\Backend\Module\BaseScriptClass {
                $thumbnailFiles = array();
                $defaultTemporaryFolder = $this->getDefaultImportExportFolder();
 
-               if ($defaultTemporaryFolder === FALSE) {
+               if ($defaultTemporaryFolder === NULL) {
                        return $thumbnailFiles;
                }