Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions includes/arrays.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,7 @@
$default_priority = LOG_WARNING;
}

if (!isset($step)) {
$step = read_config_option('poller_interval');
}
$step ??= read_config_option('poller_interval');
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR description mentions prepared statements / SQL parameterization and RLIKE/LIKE injection fixes, but the changes in this PR appear limited to ?? / ??= mechanical refactors in the touched files. Either update the PR description to match the actual changes, or include the intended SQL hardening changes in this PR.

Copilot uses AI. Check for mistakes.

switch($step) {
case '10':
Expand Down
4 changes: 2 additions & 2 deletions notify_lists.php
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ function form_actions() {

bottom_footer();
} else {
$save = ['post' => $_POST, 'selected_items' => isset($selected_items) ? $selected_items : ''];
$save = ['post' => $_POST, 'selected_items' => $selected_items ?? ''];
api_plugin_hook_function('notify_list_form_confirm', $save);
}
}
Expand Down Expand Up @@ -974,7 +974,7 @@ function edit() {
draw_edit_form(
[
'config' => [],
'fields' => inject_form_variables($fields_notification, (isset($list) ? $list : []))
'fields' => inject_form_variables($fields_notification, ($list ?? []))
]
);

Expand Down
Loading
Loading