fix phpstan error

master
Jean-Christian Paul Denis 2022-12-01 11:08:51 +01:00
parent ab342367a5
commit 1083ad2633
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ class index
'theme' => explode(',', DC_DISTRIB_THEMES),
];
if (!isset(dcCore::app()->themes)) {
if (!(dcCore::app()->themes instanceof dcThemes)) {
dcCore::app()->themes = new dcThemes();
dcCore::app()->themes->loadModules(dcCore::app()->blog->themes_path, null);
}