aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Themes.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2022-05-30 10:34:39 +0200
committerGravatar GitHub <noreply@github.com> 2022-05-30 10:34:39 +0200
commit15cdb60ba07f9c83d0129677b117bd3e955e13e5 (patch)
treec1a6d53fd3015e1162d75a93fac7fd0c3f46662a /app/Models/Themes.php
parentb4ff1e03dd1b74edac57a9045d2aa5d6e5e03d01 (diff)
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
Diffstat (limited to 'app/Models/Themes.php')
-rw-r--r--app/Models/Themes.php2
1 files changed, 1 insertions, 1 deletions
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>';
}