summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-01-16 15:37:47 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-01-16 15:37:47 +0100
commit8614eb91db754eec7904841e44fbbbc63ffb013a (patch)
treee62f285708fbf5488b8cde55fb31631bd21b5984 /apps/dav/lib
parent48ea7251d74302993bbd1a86d7c01b45417c1965 (diff)
downloadnextcloud-server-8614eb91db754eec7904841e44fbbbc63ffb013a.tar.gz
nextcloud-server-8614eb91db754eec7904841e44fbbbc63ffb013a.zip
Fix avatarHome
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/dav/lib')
-rw-r--r--apps/dav/lib/Avatars/AvatarHome.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/Avatars/AvatarHome.php b/apps/dav/lib/Avatars/AvatarHome.php
index ee654f2aaa2..2047c5894e4 100644
--- a/apps/dav/lib/Avatars/AvatarHome.php
+++ b/apps/dav/lib/Avatars/AvatarHome.php
@@ -70,7 +70,7 @@ class AvatarHome implements ICollection {
throw new MethodNotAllowed('Invalid image size');
}
$avatar = $this->avatarManager->getAvatar($this->getName());
- if ($avatar === null || !$avatar->exists()) {
+ if (!$avatar->exists()) {
throw new NotFound();
}
return new AvatarNode($size, $ext, $avatar);