summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Storage/Local.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-01-12 13:59:58 +0100
committerMorris Jobke <hey@morrisjobke.de>2018-01-12 13:59:58 +0100
commit01040daf0262d56afbd4a6f74a895e61b8505be0 (patch)
tree1c40ddee8922321ce971f7c9939af9cc5258ce78 /lib/private/Files/Storage/Local.php
parent33a6e265b24f7da3092fb55d50ef14e8ada6858d (diff)
downloadnextcloud-server-01040daf0262d56afbd4a6f74a895e61b8505be0.tar.gz
nextcloud-server-01040daf0262d56afbd4a6f74a895e61b8505be0.zip
Fix call to clearstatcache to actually use the file path
* found while adding the strict_typing for PHP 7+ migration * first argument is a boolean - second one is the path * see http://php.net/manual/en/function.clearstatcache.php Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/Files/Storage/Local.php')
-rw-r--r--lib/private/Files/Storage/Local.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Storage/Local.php b/lib/private/Files/Storage/Local.php
index 731481d4f4f..ba9b15ce931 100644
--- a/lib/private/Files/Storage/Local.php
+++ b/lib/private/Files/Storage/Local.php
@@ -180,7 +180,7 @@ class Local extends \OC\Files\Storage\Common {
public function filemtime($path) {
$fullPath = $this->getSourcePath($path);
- clearstatcache($fullPath);
+ clearstatcache(true, $fullPath);
if (!$this->file_exists($path)) {
return false;
}