aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Avatars/AvatarHome.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/lib/Avatars/AvatarHome.php')
-rw-r--r--apps/dav/lib/Avatars/AvatarHome.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/dav/lib/Avatars/AvatarHome.php b/apps/dav/lib/Avatars/AvatarHome.php
index ba52daeb2b3..097307f452f 100644
--- a/apps/dav/lib/Avatars/AvatarHome.php
+++ b/apps/dav/lib/Avatars/AvatarHome.php
@@ -59,8 +59,8 @@ class AvatarHome implements ICollection {
public function getChild($name) {
$elements = pathinfo($name);
- $ext = isset($elements['extension']) ? $elements['extension'] : '';
- $size = (int)(isset($elements['filename']) ? $elements['filename'] : '64');
+ $ext = $elements['extension'] ?? '';
+ $size = (int)($elements['filename'] ?? '64');
if (!in_array($ext, ['jpeg', 'png'], true)) {
throw new MethodNotAllowed('File format not allowed');
}