diff options
author | John Molakvoæ <skjnldsv@protonmail.com> | 2022-04-30 12:31:09 +0200 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2022-04-30 13:40:27 +0200 |
commit | f577b5dc96bf6248a1d0c5497573dd3b3eaaffd9 (patch) | |
tree | c06361089caa9faebbd8890233df8e2bed98d8d6 /apps/theming/lib | |
parent | 24c5d994c7652f266f62563f11bab55defc41dae (diff) | |
download | nextcloud-server-f577b5dc96bf6248a1d0c5497573dd3b3eaaffd9.tar.gz nextcloud-server-f577b5dc96bf6248a1d0c5497573dd3b3eaaffd9.zip |
Fix theming setEnabledThemes unique array
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/theming/lib')
-rw-r--r-- | apps/theming/lib/Service/ThemesService.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/theming/lib/Service/ThemesService.php b/apps/theming/lib/Service/ThemesService.php index 283b2e9c9ee..26dcbfed0d5 100644 --- a/apps/theming/lib/Service/ThemesService.php +++ b/apps/theming/lib/Service/ThemesService.php @@ -176,6 +176,6 @@ class ThemesService { */ private function setEnabledThemes(array $themes): void { $user = $this->userSession->getUser(); - $this->config->setUserValue($user->getUID(), Application::APP_ID, 'enabled-themes', json_encode(array_unique(array_values($themes)))); + $this->config->setUserValue($user->getUID(), Application::APP_ID, 'enabled-themes', json_encode(array_values(array_unique($themes)))); } } |