Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kunzelmann <maxdev@posteo.de>2022-03-23 16:58:02 +0300
committerMax Kunzelmann <maxdev@posteo.de>2022-03-23 17:02:01 +0300
commit3a135f0c5f02dc7dbcd8dc6879fd9dc4260f72b0 (patch)
tree9ce74fbc15aa369f3d6dee4f19d3e8429e4d63a3 /lib/private/Files/Storage
parente0a5fe649a73edc3769af1b9af1d2938fd327cc2 (diff)
Set `mtime` to null instead of false if `getlastmodified` does not exist.
Signed-off-by: Max Kunzelmann <maxdev@posteo.de>
Diffstat (limited to 'lib/private/Files/Storage')
-rw-r--r--lib/private/Files/Storage/DAV.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Storage/DAV.php b/lib/private/Files/Storage/DAV.php
index bd818bf33a2..568262d9817 100644
--- a/lib/private/Files/Storage/DAV.php
+++ b/lib/private/Files/Storage/DAV.php
@@ -587,7 +587,7 @@ class DAV extends Common {
return false;
}
return [
- 'mtime' => isset($response['{DAV:}getlastmodified']) ? strtotime($response['{DAV:}getlastmodified']) : false,
+ 'mtime' => isset($response['{DAV:}getlastmodified']) ? strtotime($response['{DAV:}getlastmodified']) : null,
'size' => (int)isset($response['{DAV:}getcontentlength']) ? $response['{DAV:}getcontentlength'] : 0,
];
} catch (\Exception $e) {