summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-12-13 10:07:10 +0100
committerMorris Jobke <hey@morrisjobke.de>2014-12-13 10:07:10 +0100
commit5b3971f002abf3a5f94f738eb189567110841574 (patch)
treeaf14ef772230e31ad1c61261654a46df17661688 /lib/private
parent29e1c3a898a66b0b005d230a836a0275e462071c (diff)
parentfdbb68a3c3aa6c6cf6ae5c440dd7b742076f1184 (diff)
downloadnextcloud-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.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;