diff options
author | John Molakvoæ <skjnldsv@protonmail.com> | 2022-09-23 15:29:47 +0200 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2022-09-23 15:48:45 +0200 |
commit | 7a43559197ba77af68b9326e8e2c46d9cb211ac6 (patch) | |
tree | ea324da06c0e50c4b952aae20aeb0820a81026f5 /apps/theming/lib/Service | |
parent | 0b23ad925600adef279895c14f0006ae7d081e83 (diff) | |
download | nextcloud-server-7a43559197ba77af68b9326e8e2c46d9cb211ac6.tar.gz nextcloud-server-7a43559197ba77af68b9326e8e2c46d9cb211ac6.zip |
Refactor primary computation and fix a few missing theme parity variables
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/theming/lib/Service')
-rw-r--r-- | apps/theming/lib/Service/ThemesService.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/theming/lib/Service/ThemesService.php b/apps/theming/lib/Service/ThemesService.php index 26dcbfed0d5..eabd903734a 100644 --- a/apps/theming/lib/Service/ThemesService.php +++ b/apps/theming/lib/Service/ThemesService.php @@ -87,9 +87,9 @@ class ThemesService { } /** @var ITheme[] */ - $themes = array_map(function($themeId) { + $themes = array_filter(array_map(function($themeId) { return $this->getThemes()[$themeId]; - }, $themesIds); + }, $themesIds)); // Filtering all themes with the same type $filteredThemes = array_filter($themes, function(ITheme $t) use ($theme) { |