diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2018-01-24 16:28:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-24 16:28:55 +0100 |
commit | 1a21524f6f9624178bf5b95cfcab1847ab394424 (patch) | |
tree | 21c9b9ebb767d1afd16463f350ea6d520044402a /lib/private/Avatar.php | |
parent | 76636dea9ce544c0c73f6d827f11382777eeb4ee (diff) | |
parent | 0209690d559277cf23c1cbb65b94e3b01d2cb235 (diff) | |
download | nextcloud-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.php | 5 |
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; } |