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:
Max Kunzelmann 2022-03-23 14:58:02 +01:00
parent e0a5fe649a
commit 3a135f0c5f

View file

@ -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) {