mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-01-28 11:17:10 +00:00
fix some php8 warnings
This commit is contained in:
@@ -690,7 +690,7 @@ class Pref_Feeds extends Handler_Protected {
|
||||
$purge_intl = (int) clean($_POST["purge_interval"] ?? 0);
|
||||
$feed_id = (int) clean($_POST["id"] ?? 0); /* editSave */
|
||||
$feed_ids = explode(",", clean($_POST["ids"] ?? "")); /* batchEditSave */
|
||||
$cat_id = (int) clean($_POST["cat_id"]);
|
||||
$cat_id = (int) clean($_POST["cat_id"] ?? 0);
|
||||
$auth_login = clean($_POST["auth_login"]);
|
||||
$auth_pass = clean($_POST["auth_pass"]);
|
||||
$private = checkbox_to_sql_bool(clean($_POST["private"] ?? ""));
|
||||
|
||||
@@ -51,8 +51,8 @@ class Pref_Filters extends Handler_Protected {
|
||||
$filter = array();
|
||||
|
||||
$filter["enabled"] = true;
|
||||
$filter["match_any_rule"] = checkbox_to_sql_bool(clean($_REQUEST["match_any_rule"]));
|
||||
$filter["inverse"] = checkbox_to_sql_bool(clean($_REQUEST["inverse"]));
|
||||
$filter["match_any_rule"] = checkbox_to_sql_bool(clean($_REQUEST["match_any_rule"] ?? false));
|
||||
$filter["inverse"] = checkbox_to_sql_bool(clean($_REQUEST["inverse"] ?? false));
|
||||
|
||||
$filter["rules"] = array();
|
||||
$filter["actions"] = array("dummy-action");
|
||||
|
||||
Reference in New Issue
Block a user