If search is not set use an empty string instead of null

This commit is contained in:
Mark J Crane
2025-10-22 10:04:34 -06:00
parent 136933fa57
commit 8d5572a943
52 changed files with 90 additions and 90 deletions

View File

@@ -49,7 +49,7 @@
$list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false);
//get search
$search = $_REQUEST['search'] ?? null;
$search = $_REQUEST['search'] ?? '';
//get posted data
if (!empty($_POST['call_flows'])) {
@@ -82,7 +82,7 @@
break;
}
header('Location: call_flows.php'.($search != '' ? '?search='.urlencode($search) : null));
header('Location: call_flows.php'.($search != '' ? '?search='.urlencode($search) : ''));
exit;
}