Merge pull request 'Fix Undefined index when using Single User Mode' (#14) from Threk/tt-rss:master into master

Reviewed-on: https://git.tt-rss.org/fox/tt-rss/pulls/14
This commit is contained in:
fox 2021-03-04 18:50:35 +03:00
commit c9b0196de0
1 changed files with 1 additions and 1 deletions

View File

@ -443,7 +443,7 @@ class RPC extends Handler_Protected {
$params["default_view_mode"] = get_pref(Prefs::_DEFAULT_VIEW_MODE);
$params["default_view_limit"] = (int) get_pref(Prefs::_DEFAULT_VIEW_LIMIT);
$params["default_view_order_by"] = get_pref(Prefs::_DEFAULT_VIEW_ORDER_BY);
$params["bw_limit"] = (int) $_SESSION["bw_limit"];
$params["bw_limit"] = (int) ($_SESSION["bw_limit"] ?? false);
$params["is_default_pw"] = UserHelper::is_default_password();
$params["label_base_index"] = LABEL_BASE_INDEX;