From 87879e83927d66332d2d0794bc47eeb55f8c9b46 Mon Sep 17 00:00:00 2001 From: Inverle Date: Sun, 31 Aug 2025 19:09:02 +0200 Subject: Improve leave validation (#7830) * Improve leave validation * array_key_exists -> isset Co-authored-by: Alexandre Alapetite --- app/Models/Context.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'app/Models/Context.php') diff --git a/app/Models/Context.php b/app/Models/Context.php index 27b1c4309..76a51c7ef 100644 --- a/app/Models/Context.php +++ b/app/Models/Context.php @@ -151,6 +151,15 @@ final class FreshRSS_Context { if (!in_array(FreshRSS_Context::$user_conf->display_categories, [ 'active', 'remember', 'all', 'none' ], true)) { FreshRSS_Context::$user_conf->display_categories = FreshRSS_Context::$user_conf->display_categories === true ? 'all' : 'active'; } + + // FreshRSS 1.27.1+ + if (isset(FreshRSS_Context::$user_conf->shortcuts['close_dropdown'])) { + $shortcuts = FreshRSS_Context::$user_conf->shortcuts; + $shortcuts['close_menus'] = $shortcuts['close_dropdown']; + unset($shortcuts['close_dropdown']); + FreshRSS_Context::$user_conf->shortcuts = $shortcuts; + FreshRSS_Context::$user_conf->save(); + } } /** -- cgit v1.2.3