aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming/lib/Service
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2022-09-23 15:29:47 +0200
committerJohn Molakvoæ <skjnldsv@protonmail.com>2022-09-23 15:48:45 +0200
commit7a43559197ba77af68b9326e8e2c46d9cb211ac6 (patch)
treeea324da06c0e50c4b952aae20aeb0820a81026f5 /apps/theming/lib/Service
parent0b23ad925600adef279895c14f0006ae7d081e83 (diff)
downloadnextcloud-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.php4
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) {