Skip to content

A free, self-hostable news aggregator…

Fix warning with icons (#4390)

Alexandre Alapetite15cdb60ba07f
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 '<span class="icon">' . $alt . '</span>';
}