mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 06:37:56 -04:00
Use the null coalescing operator to set the value of size.
Signed-off-by: Max Kunzelmann <maxdev@posteo.de>
This commit is contained in:
parent
3a135f0c5f
commit
2952c7d01f
1 changed files with 1 additions and 1 deletions
|
|
@ -588,7 +588,7 @@ class DAV extends Common {
|
|||
}
|
||||
return [
|
||||
'mtime' => isset($response['{DAV:}getlastmodified']) ? strtotime($response['{DAV:}getlastmodified']) : null,
|
||||
'size' => (int)isset($response['{DAV:}getcontentlength']) ? $response['{DAV:}getcontentlength'] : 0,
|
||||
'size' => (int)($response['{DAV:}getcontentlength'] ?? 0),
|
||||
];
|
||||
} catch (\Exception $e) {
|
||||
$this->convertException($e, $path);
|
||||
|
|
|
|||
Loading…
Reference in a new issue