From 15cdb60ba07f9c83d0129677b117bd3e955e13e5 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Mon, 30 May 2022 10:34:39 +0200 Subject: Fix warning with icons (#4390) Fix warning in cases when the user context is not yet available, for instance during install Fix regression from https://github.com/FreshRSS/FreshRSS/pull/4353 --- app/Models/Themes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Models/Themes.php') diff --git a/app/Models/Themes.php b/app/Models/Themes.php index 585ff30f4..ceaa49266 100644 --- a/app/Models/Themes.php +++ b/app/Models/Themes.php @@ -128,7 +128,7 @@ class FreshRSS_Themes extends Minz_Model { return Minz_Url::display($url); } - if (FreshRSS_Context::$user_conf->icons_as_emojis) { + if (FreshRSS_Context::$user_conf && FreshRSS_Context::$user_conf->icons_as_emojis) { return '' . $alt . ''; } -- cgit v1.2.3