summaryrefslogtreecommitdiffstats
path: root/lib/private/Avatar.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2018-01-24 16:28:55 +0100
committerGitHub <noreply@github.com>2018-01-24 16:28:55 +0100
commit1a21524f6f9624178bf5b95cfcab1847ab394424 (patch)
tree21c9b9ebb767d1afd16463f350ea6d520044402a /lib/private/Avatar.php
parent76636dea9ce544c0c73f6d827f11382777eeb4ee (diff)
parent0209690d559277cf23c1cbb65b94e3b01d2cb235 (diff)
downloadnextcloud-server-1a21524f6f9624178bf5b95cfcab1847ab394424.tar.gz
nextcloud-server-1a21524f6f9624178bf5b95cfcab1847ab394424.zip
Merge pull request #8025 from nextcloud/13-8020
[stable13] Make sure we always know for sure if an avatar is generated or not
Diffstat (limited to 'lib/private/Avatar.php')
-rw-r--r--lib/private/Avatar.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/Avatar.php b/lib/private/Avatar.php
index afa9118c509..cd29017333c 100644
--- a/lib/private/Avatar.php
+++ b/lib/private/Avatar.php
@@ -217,6 +217,11 @@ class Avatar implements IAvatar {
}
+ if($this->config->getUserValue($this->user->getUID(), 'avatar', 'generated', null) === null) {
+ $generated = $this->folder->fileExists('generated') ? 'true' : 'false';
+ $this->config->setUserValue($this->user->getUID(), 'avatar', 'generated', $generated);
+ }
+
return $file;
}