diff --git a/classes/pref/filters.php b/classes/pref/filters.php index d733ad9da..993b35c11 100755 --- a/classes/pref/filters.php +++ b/classes/pref/filters.php @@ -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 "
"; diff --git a/classes/pref/users.php b/classes/pref/users.php index 1a948958e..d8983c9c2 100644 --- a/classes/pref/users.php +++ b/classes/pref/users.php @@ -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 "