[BUGFIX] Fix check for import / export folder 39/40339/2
authorAlexander Stehlik <alexander.stehlik@gmail.com>
Wed, 17 Jun 2015 09:45:18 +0000 (11:45 +0200)
committerMarc Bastian Heinrichs <typo3@mbh-software.de>
Thu, 18 Jun 2015 11:09:43 +0000 (13:09 +0200)
When the import / export folder is not available a NULL value
is returned. The condition that checks if a vaild folder is
found now checks for NULL values instead of FALSE.

Releases: master, 6.2
Resolves: #67543
Change-Id: Ie9d6314506f9c8bbea19ed445e29b5bd1d8a544b
Reviewed-on: http://review.typo3.org/40339
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Marc Bastian Heinrichs <typo3@mbh-software.de>
Tested-by: Marc Bastian Heinrichs <typo3@mbh-software.de>
typo3/sysext/impexp/Classes/Controller/ImportExportController.php

index dd8cd60..51bf765 100644 (file)
@@ -1471,7 +1471,7 @@ class ImportExportController extends \TYPO3\CMS\Backend\Module\BaseScriptClass {
                $exportFiles = array();
 
                $folder = $this->getDefaultImportExportFolder();
-               if ($folder !== FALSE) {
+               if ($folder !== NULL) {
 
                        /** @var $filter \TYPO3\CMS\Core\Resource\Filter\FileExtensionFilter */
                        $filter = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Resource\\Filter\\FileExtensionFilter');