[BUGFIX] Clicking on empty storage does not show anything
authorGeorg Ringer <georg.ringer@gmail.com>
Mon, 8 Oct 2012 07:08:33 +0000 (09:08 +0200)
committerOliver Hader <oliver.hader@typo3.org>
Mon, 8 Oct 2012 15:03:35 +0000 (17:03 +0200)
Currently clicking on an empty storage (without any files)
in the filelist module, does not show anything.

Change-Id: I381a787b08bc4310ef9d10f84ded78a91baf0845
Fixes: #41667
Releases: 6.0
Reviewed-on: http://review.typo3.org/15390
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
typo3/sysext/filelist/Classes/Controller/FileListController.php

index 2e67c02..d38aabb 100644 (file)
@@ -100,7 +100,7 @@ class FileListController {
                // Setting module name:
                $this->MCONF = $GLOBALS['MCONF'];
                        // Create the folder object, even try parent folders
-               while ($this->folderObject === NULL && count(\TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode('/', $combinedIdentifier, TRUE)) > 1) {
+               while ($this->folderObject === NULL && count(\TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode('/', $combinedIdentifier, TRUE)) >= 1) {
                        try {
                                if ($combinedIdentifier) {
                                        $fileFactory = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Resource\\ResourceFactory');
@@ -426,4 +426,4 @@ class FileListController {
 }
 
 
-?>
+?>
\ No newline at end of file