don't update storage mtime if we can't get the modified date

pull/25/head
Robin Appelman 10 years ago committed by Arthur Schiwon
parent 9b5fd515ef
commit 7970ff2099
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
  1. 5
      lib/private/Files/Cache/Updater.php

@ -231,7 +231,10 @@ class Updater implements IUpdater {
$parentId = $this->cache->getParentId($internalPath);
$parent = dirname($internalPath);
if ($parentId != -1) {
$this->cache->update($parentId, array('storage_mtime' => $this->storage->filemtime($parent)));
$mtime = $this->storage->filemtime($parent);
if ($mtime !== false) {
$this->cache->update($parentId, array('storage_mtime' => $mtime));
}
}
}
}

Loading…
Cancel
Save