mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Set mtime to null instead of false if getlastmodified does not exist.
Signed-off-by: Max Kunzelmann <maxdev@posteo.de>
This commit is contained in:
parent
e0a5fe649a
commit
3a135f0c5f
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue