summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-15 17:07:50 +0300
committerAndrew Dolgov <[email protected]>2021-02-15 17:07:50 +0300
commit70e293bccbdba7827680c0499cb315ec3f613627 (patch)
treeea052c2bb9eec236d8ca8ff1f99967a78fe56768
parentd4157b9e4e494e737038f6a00e921bc93b234780 (diff)
pref-filters: fix some warningsunify-method-naming
-rwxr-xr-xclasses/pref/filters.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/classes/pref/filters.php b/classes/pref/filters.php
index 95f0fcfc0..930a4eeac 100755
--- a/classes/pref/filters.php
+++ b/classes/pref/filters.php
@@ -567,7 +567,7 @@ class Pref_Filters extends Handler_Protected {
function editSave() {
$filter_id = clean($_REQUEST["id"]);
$enabled = checkbox_to_sql_bool(clean($_REQUEST["enabled"] ?? false));
- $match_any_rule = checkbox_to_sql_bool(clean($_REQUEST["match_any_rule"]));
+ $match_any_rule = checkbox_to_sql_bool(clean($_REQUEST["match_any_rule"] ?? false));
$inverse = checkbox_to_sql_bool(clean($_REQUEST["inverse"] ?? false));
$title = clean($_REQUEST["title"]);
@@ -675,10 +675,10 @@ class Pref_Filters extends Handler_Protected {
}
function add() {
- $enabled = checkbox_to_sql_bool(clean($_REQUEST["enabled"]));
- $match_any_rule = checkbox_to_sql_bool(clean($_REQUEST["match_any_rule"]));
+ $enabled = checkbox_to_sql_bool(clean($_REQUEST["enabled"] ?? false));
+ $match_any_rule = checkbox_to_sql_bool(clean($_REQUEST["match_any_rule"] ?? false));
$title = clean($_REQUEST["title"]);
- $inverse = checkbox_to_sql_bool(clean($_REQUEST["inverse"]));
+ $inverse = checkbox_to_sql_bool(clean($_REQUEST["inverse"] ?? false));
$this->pdo->beginTransaction();