diff options
author | Max Kunzelmann <maxdev@posteo.de> | 2022-03-23 14:58:02 +0100 |
---|---|---|
committer | Max Kunzelmann <maxdev@posteo.de> | 2022-03-23 15:02:01 +0100 |
commit | 3a135f0c5f02dc7dbcd8dc6879fd9dc4260f72b0 (patch) | |
tree | 9ce74fbc15aa369f3d6dee4f19d3e8429e4d63a3 /lib | |
parent | e0a5fe649a73edc3769af1b9af1d2938fd327cc2 (diff) | |
download | nextcloud-server-3a135f0c5f02dc7dbcd8dc6879fd9dc4260f72b0.tar.gz nextcloud-server-3a135f0c5f02dc7dbcd8dc6879fd9dc4260f72b0.zip |
Set `mtime` to null instead of false if `getlastmodified` does not exist.
Signed-off-by: Max Kunzelmann <maxdev@posteo.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/Storage/DAV.php | 2 |
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) { |