summaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2020-03-25 11:14:13 +0100
committerGitHub <noreply@github.com>2020-03-25 11:14:13 +0100
commitba14c41a1ca39624040282ab9082fff7aa09bff6 (patch)
tree9d533b49a79ea1efee7efb4af2055bc8e7791a89 /apps/dav
parent3427653676e7ef985778794df27a6fd5e2bdaa11 (diff)
parentf3a5bd6753f10dc511ee90a1f042477120e0da33 (diff)
downloadnextcloud-server-ba14c41a1ca39624040282ab9082fff7aa09bff6.tar.gz
nextcloud-server-ba14c41a1ca39624040282ab9082fff7aa09bff6.zip
Merge pull request #20145 from nextcloud/bugfix/noid/generated-avatars-and-nophoto-cache
Fix generated avatars and nophoto cache files
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/lib/CardDAV/PhotoCache.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/dav/lib/CardDAV/PhotoCache.php b/apps/dav/lib/CardDAV/PhotoCache.php
index c02280a0bec..99c0d1817c3 100644
--- a/apps/dav/lib/CardDAV/PhotoCache.php
+++ b/apps/dav/lib/CardDAV/PhotoCache.php
@@ -108,7 +108,7 @@ class PhotoCache {
$data = $this->getPhoto($card);
if ($data === false || !isset($data['Content-Type'])) {
- $folder->newFile('nophoto');
+ $folder->newFile('nophoto', '');
return;
}
@@ -116,7 +116,7 @@ class PhotoCache {
$extension = self::ALLOWED_CONTENT_TYPES[$contentType] ?? null;
if ($extension === null) {
- $folder->newFile('nophoto');
+ $folder->newFile('nophoto', '');
return;
}