summaryrefslogtreecommitdiffstats
path: root/lib/private/Avatar.php
diff options
context:
space:
mode:
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;
}