diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-12-13 10:07:10 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-12-13 10:07:10 +0100 |
commit | 5b3971f002abf3a5f94f738eb189567110841574 (patch) | |
tree | af14ef772230e31ad1c61261654a46df17661688 /lib/private | |
parent | 29e1c3a898a66b0b005d230a836a0275e462071c (diff) | |
parent | fdbb68a3c3aa6c6cf6ae5c440dd7b742076f1184 (diff) | |
download | nextcloud-server-5b3971f002abf3a5f94f738eb189567110841574.tar.gz nextcloud-server-5b3971f002abf3a5f94f738eb189567110841574.zip |
Merge pull request #12639 from owncloud/bad_mtime_format
Fix formatting of bad dates from external storages
Diffstat (limited to 'lib/private')
-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; |