aboutsummaryrefslogtreecommitdiff
path: root/app/Models
diff options
context:
space:
mode:
Diffstat (limited to 'app/Models')
-rw-r--r--app/Models/Context.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/Models/Context.php b/app/Models/Context.php
index e27330665..c5dcbdcdb 100644
--- a/app/Models/Context.php
+++ b/app/Models/Context.php
@@ -69,6 +69,11 @@ class FreshRSS_Context {
}
FreshRSS_Context::$user_conf->archiving = $archiving;
}
+
+ //Legacy < 1.16.1
+ if (!in_array(FreshRSS_Context::$user_conf->display_categories, [ 'active', 'all', 'none' ], true)) {
+ FreshRSS_Context::$user_conf->display_categories = FreshRSS_Context::$user_conf->display_categories === true ? 'all' : 'active';
+ }
}
/**