Skip to content

Commit 7f0dac5

Browse files
author
--global
committed
[BUG] check if fileCollection is not null and not empty
1 parent 1194d49 commit 7f0dac5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/Controller/GalleryController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class GalleryController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionControll
4747
* @return void
4848
*/
4949
public function listAction($offset = 0) {
50-
if($this->settings['fileCollection'] !== "") {
50+
if($this->settings['fileCollection'] !== "" && $this->settings['fileCollection']) {
5151
$collectionUids = explode(',', $this->settings['fileCollection']);
5252
$imageItems = $this->fileCollectionService->getFileObjectsFromCollection($collectionUids);
5353
$cObj = $this->configurationManager->getContentObject();

0 commit comments

Comments
 (0)