[BUGFIX] Modification date comparison fixed in FAL indexer 33/47533/2
authorWouter Wolters <typo3@wouterwolters.nl>
Wed, 6 Apr 2016 17:07:41 +0000 (19:07 +0200)
committerAndreas Fernandez <typo3@scripting-base.de>
Thu, 7 Apr 2016 12:19:08 +0000 (14:19 +0200)
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/47533
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/core/Classes/Resource/Index/Indexer.php

index eef5f8c..d1c9338 100644 (file)
@@ -211,7 +211,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 {