Actions
Bug #54312
closedLogical error in indexer task
Start date:
2013-12-10
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.4
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
In the processChangedAndNewFiles()
method in the Indexer
class there seems to be a logical error which causes a fatal PHP error because an invalid call to getFileObject()
.
At the beginning there is a check:
if ($data == NULL) {
The data variable is not modified and then passed to the getFileObject()
method:
$fileObject = $this->getResourceFactory()->getFileObject($data['uid'], $data);
Since data is NULL and does obviously not contain a UID this method call fails.
As far as I can see the code needs to look like that:
$fileObject = $this->getResourceFactory()->getFileObject($fileIndexEntry['uid'], $fileIndexEntry);
Actions