aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Avatar/UserAvatar.php
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-06-23 11:42:14 +0200
committerCarl Schwan <carl@carlschwan.eu>2022-07-05 14:44:44 +0200
commitec5cbdeb7ffb87c0169c39e6f44846e819b41f14 (patch)
tree275f11c139076fbcb60cc39c8ce609dfd3f41f82 /lib/private/Avatar/UserAvatar.php
parent812016d62614ac3669a3fdf51fa2e07170e08c08 (diff)
downloadnextcloud-server-ec5cbdeb7ffb87c0169c39e6f44846e819b41f14.tar.gz
nextcloud-server-ec5cbdeb7ffb87c0169c39e6f44846e819b41f14.zip
Make Color class public
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'lib/private/Avatar/UserAvatar.php')
-rw-r--r--lib/private/Avatar/UserAvatar.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Avatar/UserAvatar.php b/lib/private/Avatar/UserAvatar.php
index 191a6ebfff4..f5a1d7e77b1 100644
--- a/lib/private/Avatar/UserAvatar.php
+++ b/lib/private/Avatar/UserAvatar.php
@@ -192,7 +192,7 @@ class UserAvatar extends Avatar {
$avatars = $this->folder->getDirectoryListing();
$this->config->setUserValue($this->user->getUID(), 'avatar', 'version',
- (int) $this->config->getUserValue($this->user->getUID(), 'avatar', 'version', 0) + 1);
+ (string)((int)$this->config->getUserValue($this->user->getUID(), 'avatar', 'version', '0') + 1));
foreach ($avatars as $avatar) {
$avatar->delete();