From 9573c68f7c1ef158a9b5d55ebcd3ae5e9e317efa Mon Sep 17 00:00:00 2001 From: Sytorex <68004414+Sytorex-pro@users.noreply.github.com> Date: Tue, 9 Aug 2022 16:11:36 +0200 Subject: [PATCH] improv. remove debug notice for private theme --- app/Controller/Component/ThemeComponent.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Controller/Component/ThemeComponent.php b/app/Controller/Component/ThemeComponent.php index 0f6f9690..986fed80 100755 --- a/app/Controller/Component/ThemeComponent.php +++ b/app/Controller/Component/ThemeComponent.php @@ -346,10 +346,10 @@ private function isValid($slug) private function getThemeFromAPI($slug) { - if (isset($this->themesAvailable['all'])) - foreach ($this->themesAvailable['all'] as $theme) - if (strtolower($theme['slug']) === strtolower($slug)) - return $theme; + if (isset($this->themesAvailable['all'])) foreach ($this->themesAvailable['all'] as $theme) { + if(empty($theme['slug'])) continue; + if (strtolower($theme['slug']) === strtolower($slug)) return $theme; + } return false; }