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

@@ -45,7 +45,7 @@
//get the http post data
if (!empty($_POST['email_queue']) && is_array($_POST['email_queue'])) {
$action = $_POST['action'];
$search = $_POST['search'];
$search = $_POST['search'] ?? '';
$email_queue = $_POST['email_queue'];
}
@@ -90,7 +90,7 @@
}
//redirect the user
header('Location: email_queue.php'.($search != '' ? '?search='.urlencode($search) : null));
header('Location: email_queue.php'.($search != '' ? '?search='.urlencode($search) : ''));
exit;
}