From dfac9f5813df7d4c7c812c381364c8898333f559 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Wed, 11 Sep 2024 17:14:53 +0200 Subject: PHPStan booleansInConditions (#6793) * PHPStan booleansInConditions * Uniformisation --- app/FreshRSS.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/FreshRSS.php') diff --git a/app/FreshRSS.php b/app/FreshRSS.php index ff766ad47..06557dbe1 100644 --- a/app/FreshRSS.php +++ b/app/FreshRSS.php @@ -111,7 +111,7 @@ class FreshRSS extends Minz_FrontController { return; } $theme = FreshRSS_Themes::load(FreshRSS_Context::userConf()->theme); - if ($theme) { + if (is_array($theme)) { foreach (array_reverse($theme['files']) as $file) { switch (substr($file, -3)) { case '.js': -- cgit v1.2.3