Commit da3ac98a authored by Wouter Wolters's avatar Wouter Wolters Committed by Andreas Fernandez
Browse files

[BUGFIX] Modification date comparison fixed in FAL indexer

modification_date is a string from the database and SplFileInfo
mtime is returned as integer. Cast modification_date to
an integer too.

Resolves: #75421
Releases: master,7.6
Change-Id: I7523f9f722af8cc5f4e137e32bf07e2c3105214d
Reviewed-on: https://review.typo3.org/47519

Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <typo3@scripting-base.de>
parent 80667079
......@@ -213,7 +213,7 @@ class Indexer
if ($indexRecord !== false) {
$this->identifiedFileUids[] = $indexRecord['uid'];
if ($indexRecord['modification_date'] !== $modificationTime['mtime'] || $indexRecord['missing']) {
if ((int)$indexRecord['modification_date'] !== $modificationTime['mtime'] || $indexRecord['missing']) {
$this->filesToUpdate[$fileIdentifier] = $indexRecord;
}
} else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment