summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@karoshi.org.uk>2014-04-17 11:56:51 +0100
committerRobin McCorkell <rmccorkell@karoshi.org.uk>2014-04-17 11:56:51 +0100
commit13b463cc176cb547f2b5585e974c9357150585a2 (patch)
tree6018560825429155889666c9ea1abfa784e9d458 /lib
parent8a0c8a1956f5c9f2959a48cf5c3df01eb8f61a9c (diff)
parent8bb003868c9f319e387bf464a035a3b2fd123531 (diff)
downloadnextcloud-server-13b463cc176cb547f2b5585e974c9357150585a2.tar.gz
nextcloud-server-13b463cc176cb547f2b5585e974c9357150585a2.zip
Merge pull request #8189 from Xenopathic/misc_fixes
Various fixes
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/storage/local.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/files/storage/local.php b/lib/private/files/storage/local.php
index 571bf7f97c1..ff2949d33b6 100644
--- a/lib/private/files/storage/local.php
+++ b/lib/private/files/storage/local.php
@@ -305,7 +305,11 @@ if (\OC_Util::runningOnWindows()) {
* @return bool
*/
public function hasUpdated($path, $time) {
- return $this->filemtime($path) > $time;
+ if ($this->file_exists($path)) {
+ return $this->filemtime($path) > $time;
+ } else {
+ return true;
+ }
}
/**