mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
If search is not set use an empty string instead of null
This commit is contained in:
@@ -48,7 +48,7 @@
|
||||
//get posted data
|
||||
if (!empty($_POST['call_center_agents'])) {
|
||||
$action = $_POST['action'];
|
||||
$search = $_POST['search'];
|
||||
$search = $_POST['search'] ?? '';
|
||||
$call_center_agents = $_POST['call_center_agents'];
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
break;
|
||||
}
|
||||
|
||||
header('Location: call_center_agents.php'.($search != '' ? '?search='.urlencode($search) : null));
|
||||
header('Location: call_center_agents.php'.($search != '' ? '?search='.urlencode($search) : ''));
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
//get posted data
|
||||
if (!empty($_POST['call_center_queues']) && is_array($_POST['call_center_queues'])) {
|
||||
$action = $_POST['action'];
|
||||
$search = $_POST['search'];
|
||||
$search = $_POST['search'] ?? '';
|
||||
$call_center_queues = $_POST['call_center_queues'];
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
break;
|
||||
}
|
||||
|
||||
header('Location: call_center_queues.php'.($search != '' ? '?search='.urlencode($search) : null));
|
||||
header('Location: call_center_queues.php'.($search != '' ? '?search='.urlencode($search) : ''));
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user