fix some warnings in prefs (filters, users)

This commit is contained in:
Andrew Dolgov 2021-02-06 16:13:11 +03:00
parent 73070544ca
commit 73e697a0df
2 changed files with 3 additions and 3 deletions

View File

@ -241,7 +241,7 @@ class Pref_Filters extends Handler_Protected {
$root['enabled'] = true;
$root['items'] = array();
$filter_search = $_SESSION["prefs_filter_search"];
$filter_search = ($_SESSION["prefs_filter_search"] ?? "");
$sth = $this->pdo->prepare("SELECT *,
(SELECT action_param FROM ttrss_filters2_actions
@ -740,7 +740,7 @@ class Pref_Filters extends Handler_Protected {
$filter_search = clean($_REQUEST["search"]);
$_SESSION["prefs_filter_search"] = $filter_search;
} else {
$filter_search = $_SESSION["prefs_filter_search"];
$filter_search = ($_SESSION["prefs_filter_search"] ?? "");
}
print "<div dojoType='dijit.layout.BorderContainer' gutters='false'>";

View File

@ -320,7 +320,7 @@ class Pref_Users extends Handler_Protected {
if (array_key_exists("search", $_REQUEST)) {
$_SESSION["prefs_user_search"] = $user_search;
} else {
$user_search = $_SESSION["prefs_user_search"];
$user_search = ($_SESSION["prefs_user_search"] ?? "");
}
print "<div style='float : right; padding-right : 4px;'>