diff options
author | Robin McCorkell <rmccorkell@karoshi.org.uk> | 2014-12-05 13:54:43 +0000 |
---|---|---|
committer | Robin McCorkell <rmccorkell@karoshi.org.uk> | 2014-12-12 23:54:18 +0000 |
commit | fdbb68a3c3aa6c6cf6ae5c440dd7b742076f1184 (patch) | |
tree | 986e057cc0bde8a8cd2dbbfe1e382ea72f3b9801 /lib | |
parent | 5f66cb32502c88d7182c3dc5994ef733762fa665 (diff) | |
download | nextcloud-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.php | 2 |
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; |