summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@karoshi.org.uk>2014-12-05 13:54:43 +0000
committerRobin McCorkell <rmccorkell@karoshi.org.uk>2014-12-12 23:54:18 +0000
commitfdbb68a3c3aa6c6cf6ae5c440dd7b742076f1184 (patch)
tree986e057cc0bde8a8cd2dbbfe1e382ea72f3b9801 /lib
parent5f66cb32502c88d7182c3dc5994ef733762fa665 (diff)
downloadnextcloud-server-fdbb68a3c3aa6c6cf6ae5c440dd7b742076f1184.tar.gz
nextcloud-server-fdbb68a3c3aa6c6cf6ae5c440dd7b742076f1184.zip
Return ? if mtime is 0 or -1
Tooltip contains 'Unable to determine date'. Fixes #6395
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/storage/common.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/files/storage/common.php b/lib/private/files/storage/common.php
index d76c6aa031b..b3eda1165ab 100644
--- a/lib/private/files/storage/common.php
+++ b/lib/private/files/storage/common.php
@@ -132,7 +132,7 @@ abstract class Common implements \OC\Files\Storage\Storage {
public function filemtime($path) {
$stat = $this->stat($path);
- if (isset($stat['mtime'])) {
+ if (isset($stat['mtime']) && $stat['mtime'] > 0) {
return $stat['mtime'];
} else {
return 0;