Set `mtime` to null instead of false if `getlastmodified` does not exist.

Signed-off-by: Max Kunzelmann <maxdev@posteo.de>
pull/31632/head
Max Kunzelmann 4 years ago
parent e0a5fe649a
commit 3a135f0c5f
  1. 2
      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) {

Loading…
Cancel
Save