[FOLLOWUP][FEATURE] Introduce Data Processor for Files 99/41299/4
authorStefan Neufeind <typo3.neufeind@speedpartner.de>
Wed, 15 Jul 2015 13:55:59 +0000 (15:55 +0200)
committerFrans Saris <franssaris@gmail.com>
Wed, 15 Jul 2015 14:28:00 +0000 (16:28 +0200)
Make sure the array key of the $files array is numeric
as different parts of the core rely on this.

Resolves: #67662
Releases: master

Change-Id: I617efa59de0de35e3c00a20f2c34af717031502f
Reviewed-on: http://review.typo3.org/41299
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Tested-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Frans Saris <franssaris@gmail.com>
Tested-by: Frans Saris <franssaris@gmail.com>
typo3/sysext/frontend/Classes/Resource/FileCollector.php

index bfaaf31..7b17862 100644 (file)
@@ -176,7 +176,7 @@ class FileCollector implements \Countable {
                        try {
                                $folder = $this->getResourceFactory()->getFolderObjectFromCombinedIdentifier($folderIdentifier);
                                if ($folder instanceof Folder) {
-                                       $files = $folder->getFiles();
+                                       $files = array_values($folder->getFiles());
 
                                        $this->addFileObjects($files);
                                }