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:
@@ -96,7 +96,7 @@
|
||||
}
|
||||
|
||||
//redirect the user
|
||||
header('Location: access_controls.php'.(!empty($search) ? '?search='.urlencode($search) : null));
|
||||
header('Location: access_controls.php'.(!empty($search) ? '?search='.urlencode($search) : ''));
|
||||
exit;
|
||||
}
|
||||
|
||||
@@ -152,7 +152,7 @@
|
||||
echo "<div class='action_bar' id='action_bar'>\n";
|
||||
echo " <div class='heading'><b>".$text['title-access_controls']."</b><div class='count'>".number_format($num_rows)."</div></div>\n";
|
||||
echo " <div class='actions'>\n";
|
||||
echo button::create(['label'=>$text['button-reload'],'icon'=>$settings->get('theme', 'button_icon_reload'),'type'=>'button','id'=>'button_reload','link'=>'access_controls_reload.php'.(!empty($search) ? '?search='.urlencode($search) : null),'style'=>'margin-right: 15px;']);
|
||||
echo button::create(['label'=>$text['button-reload'],'icon'=>$settings->get('theme', 'button_icon_reload'),'type'=>'button','id'=>'button_reload','link'=>'access_controls_reload.php'.(!empty($search) ? '?search='.urlencode($search) : ''),'style'=>'margin-right: 15px;']);
|
||||
if (permission_exists('access_control_add')) {
|
||||
echo button::create(['type'=>'button','label'=>$text['button-add'],'icon'=>$settings->get('theme', 'button_icon_add'),'id'=>'btn_add','name'=>'btn_add','link'=>'access_control_edit.php']);
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
//get the http post data
|
||||
if (!empty($_POST['bridges'])) {
|
||||
$action = $_POST['action'];
|
||||
$search = $_POST['search'];
|
||||
$search = $_POST['search'] ?? '';
|
||||
$bridges = $_POST['bridges'];
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@
|
||||
break;
|
||||
}
|
||||
|
||||
header('Location: bridges.php'.(!empty($search) ? '?search='.urlencode($search) : null));
|
||||
header('Location: bridges.php'.(!empty($search) ? '?search='.urlencode($search) : ''));
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
//get posted data
|
||||
if (!empty($_POST['call_blocks'])) {
|
||||
$action = $_POST['action'];
|
||||
$search = $_POST['search'];
|
||||
$search = $_POST['search'] ?? '';
|
||||
$call_blocks = $_POST['call_blocks'];
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
break;
|
||||
}
|
||||
|
||||
header('Location: call_block.php'.($search != '' ? '?search='.urlencode($search) : null));
|
||||
header('Location: call_block.php'.($search != '' ? '?search='.urlencode($search) : ''));
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
//get posted data
|
||||
if (!empty($_POST['call_broadcasts'])) {
|
||||
$action = $_POST['action'];
|
||||
$search = $_POST['search'];
|
||||
$search = $_POST['search'] ?? '';
|
||||
$call_broadcasts = $_POST['call_broadcasts'];
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
break;
|
||||
}
|
||||
|
||||
header('Location: call_broadcast.php'.($search != '' ? '?search='.urlencode($search) : null));
|
||||
header('Location: call_broadcast.php'.($search != '' ? '?search='.urlencode($search) : ''));
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
//get the http post data
|
||||
if (!empty($_POST['call_recordings']) && is_array($_POST['call_recordings'])) {
|
||||
$action = $_POST['action'];
|
||||
$search = $_POST['search'];
|
||||
$search = $_POST['search'] ?? '';
|
||||
$call_recordings = $_POST['call_recordings'];
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
}
|
||||
|
||||
//redirect the user
|
||||
header('Location: call_recordings.php'.($search != '' ? '?search='.urlencode($search) : null));
|
||||
header('Location: call_recordings.php'.($search != '' ? '?search='.urlencode($search) : ''));
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
//get posted data
|
||||
if (!empty($_POST['conference_centers'])) {
|
||||
$action = $_POST['action'];
|
||||
$search = $_POST['search'];
|
||||
$search = $_POST['search'] ?? '';
|
||||
$conference_centers = $_POST['conference_centers'];
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
break;
|
||||
}
|
||||
|
||||
header('Location: conference_centers.php'.(!empty($search) ? '?search='.urlencode($search) : null));
|
||||
header('Location: conference_centers.php'.(!empty($search) ? '?search='.urlencode($search) : ''));
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
if (!empty($_POST['conference_rooms'])) {
|
||||
$action = $_POST['action'];
|
||||
$toggle_field = $_POST['toggle_field'];
|
||||
$search = $_POST['search'];
|
||||
$search = $_POST['search'] ?? '';
|
||||
$conference_rooms = $_POST['conference_rooms'];
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
break;
|
||||
}
|
||||
|
||||
header('Location: conference_rooms.php'.(!empty($search) ? '?search='.urlencode($search) : null));
|
||||
header('Location: conference_rooms.php'.(!empty($search) ? '?search='.urlencode($search) : ''));
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
//get the http post data
|
||||
if (!empty($_POST['conference_controls'])) {
|
||||
$action = $_POST['action'];
|
||||
$search = $_POST['search'];
|
||||
$search = $_POST['search'] ?? '';
|
||||
$conference_controls = $_POST['conference_controls'];
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
break;
|
||||
}
|
||||
|
||||
header('Location: conference_controls.php'.(!empty($search) ? '?search='.urlencode($search) : null));
|
||||
header('Location: conference_controls.php'.(!empty($search) ? '?search='.urlencode($search) : ''));
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
//get the http post data
|
||||
if (!empty($_POST['conference_profiles'])) {
|
||||
$action = $_POST['action'];
|
||||
$search = $_POST['search'];
|
||||
$search = $_POST['search'] ?? '';
|
||||
$conference_profiles = $_POST['conference_profiles'];
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
break;
|
||||
}
|
||||
|
||||
header('Location: conference_profiles.php'.(!empty($search) ? '?search='.urlencode($search) : null));
|
||||
header('Location: conference_profiles.php'.(!empty($search) ? '?search='.urlencode($search) : ''));
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
//get posted data
|
||||
if (!empty($_POST['conferences'])) {
|
||||
$action = $_POST['action'];
|
||||
$search = $_POST['search'];
|
||||
$search = $_POST['search'] ?? '';
|
||||
$conferences = $_POST['conferences'];
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
break;
|
||||
}
|
||||
|
||||
header('Location: conferences.php'.($search != '' ? '?search='.urlencode($search) : null));
|
||||
header('Location: conferences.php'.($search != '' ? '?search='.urlencode($search) : ''));
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@
|
||||
break;
|
||||
}
|
||||
|
||||
header('Location: destinations.php'.($search != '' ? '?search='.urlencode($search) : null));
|
||||
header('Location: destinations.php'.($search != '' ? '?search='.urlencode($search) : ''));
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
//get posted data
|
||||
if (!empty($_POST['profiles']) && is_array($_POST['profiles'])) {
|
||||
$action = $_POST['action'];
|
||||
$search = $_POST['search'];
|
||||
$search = $_POST['search'] ?? '';
|
||||
$profiles = $_POST['profiles'];
|
||||
}
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
//get posted data
|
||||
if (!empty($_POST['vendors']) && is_array($_POST['vendors'])) {
|
||||
$action = $_POST['action'];
|
||||
$search = $_POST['search'];
|
||||
$search = $_POST['search'] ?? '';
|
||||
$vendors = $_POST['vendors'];
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
break;
|
||||
}
|
||||
|
||||
header('Location: device_vendors.php'.($search != '' ? '?search='.urlencode($search) : null));
|
||||
header('Location: device_vendors.php'.($search != '' ? '?search='.urlencode($search) : ''));
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
$action = $_POST['action'];
|
||||
$dialplans = $_POST['dialplans'];
|
||||
$context = $_POST['context'];
|
||||
$search = $_POST['search'];
|
||||
$search = $_POST['search'] ?? '';
|
||||
$order_by = $_POST['order_by'];
|
||||
$order = $_POST['order'];
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ $text = $language->get();
|
||||
//get the http post data
|
||||
if (!empty($_POST['emergency_logs']) && is_array($_POST['emergency_logs'])) {
|
||||
$action = $_POST['action'];
|
||||
$search = $_POST['search'];
|
||||
$search = $_POST['search'] ?? '';
|
||||
$emergency_logs = $_POST['emergency_logs'];
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ if (!empty($action) && !empty($emergency_logs) && is_array($emergency_logs) && @
|
||||
}
|
||||
|
||||
//redirect the user
|
||||
header('Location: emergency.php'.($search != '' ? '?search='.urlencode($search) : null));
|
||||
header('Location: emergency.php'.($search != '' ? '?search='.urlencode($search) : ''));
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
//get the http post data
|
||||
if (!empty($_POST['event_guard_logs']) && is_array($_POST['event_guard_logs'])) {
|
||||
$action = $_POST['action'];
|
||||
$search = $_POST['search'];
|
||||
$search = $_POST['search'] ?? '';
|
||||
$event_guard_logs = $_POST['event_guard_logs'];
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
}
|
||||
|
||||
//redirect the user
|
||||
header('Location: event_guard_logs.php'.($search != '' ? '?search='.urlencode($search) : null));
|
||||
header('Location: event_guard_logs.php'.($search != '' ? '?search='.urlencode($search) : ''));
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
//get the http post data
|
||||
if (!empty($_POST['extension_settings'])) {
|
||||
$action = $_POST['action'];
|
||||
$search = $_POST['search'];
|
||||
$search = $_POST['search'] ?? '';
|
||||
$extension_settings = $_POST['extension_settings'];
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
}
|
||||
|
||||
//redirect the user
|
||||
header('Location: extension_settings.php?id='.urlencode($extension_uuid).'&'.($search != '' ? '?search='.urlencode($search) : null));
|
||||
header('Location: extension_settings.php?id='.urlencode($extension_uuid).'&'.($search != '' ? '?search='.urlencode($search) : ''));
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
//get posted data
|
||||
if (!empty($_POST['extensions']) && is_array($_POST['extensions'])) {
|
||||
$action = $_POST['action'];
|
||||
$search = $_POST['search'];
|
||||
$search = $_POST['search'] ?? '';
|
||||
$extensions = $_POST['extensions'];
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
break;
|
||||
}
|
||||
|
||||
header('Location: extensions.php?'.(!empty($order_by) ? '&order_by='.$order_by.'&order='.$order : null).(is_numeric($page) ? '&page='.urlencode($page) : null).($search != '' ? '&search='.urlencode($search) : null));
|
||||
header('Location: extensions.php?'.(!empty($order_by) ? '&order_by='.$order_by.'&order='.$order : null).(is_numeric($page) ? '&page='.urlencode($page) : null).($search != '' ? '&search='.urlencode($search) : ''));
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
//get posted data
|
||||
if (!empty($_POST['fax_servers']) && is_array($_POST['fax_servers'])) {
|
||||
$action = $_POST['action'];
|
||||
$search = $_POST['search'];
|
||||
$search = $_POST['search'] ?? '';
|
||||
$fax_servers = $_POST['fax_servers'];
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
break;
|
||||
}
|
||||
|
||||
header('Location: fax.php'.($search != '' ? '?search='.urlencode($search) : null));
|
||||
header('Location: fax.php'.($search != '' ? '?search='.urlencode($search) : ''));
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
//get the http post data
|
||||
if (!empty($_POST['fifo']) && is_array($_POST['fifo'])) {
|
||||
$action = $_POST['action'];
|
||||
$search = $_POST['search'];
|
||||
$search = $_POST['search'] ?? '';
|
||||
$fifo = $_POST['fifo'];
|
||||
}
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
}
|
||||
|
||||
//redirect the user
|
||||
header('Location: fifo.php'.($search != '' ? '?search='.urlencode($search) : null));
|
||||
header('Location: fifo.php'.($search != '' ? '?search='.urlencode($search) : ''));
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
break;
|
||||
}
|
||||
|
||||
header('Location: gateways.php'.($search != '' ? '?search='.urlencode($search) : null));
|
||||
header('Location: gateways.php'.($search != '' ? '?search='.urlencode($search) : ''));
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
//get posted data
|
||||
if (!empty($_POST['ivr_menus'])) {
|
||||
$action = $_POST['action'];
|
||||
$search = $_POST['search'];
|
||||
$search = $_POST['search'] ?? '';
|
||||
$ivr_menus = $_POST['ivr_menus'];
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
break;
|
||||
}
|
||||
|
||||
header('Location: ivr_menus.php'.(!empty($search) ? '?search='.urlencode($search) : null));
|
||||
header('Location: ivr_menus.php'.(!empty($search) ? '?search='.urlencode($search) : ''));
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
$action = $_POST['action'];
|
||||
}
|
||||
if (!empty($_POST['search'])) {
|
||||
$search = $_POST['search'];
|
||||
$search = $_POST['search'] ?? '';
|
||||
}
|
||||
|
||||
//set from session variables
|
||||
@@ -93,7 +93,7 @@
|
||||
}
|
||||
|
||||
//redirect to display updates
|
||||
header('Location: modules.php'.($search != '' ? '?search='.urlencode($search) : null));
|
||||
header('Location: modules.php'.($search != '' ? '?search='.urlencode($search) : ''));
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
//get the http post data
|
||||
if (!empty($_POST['number_translations'])) {
|
||||
$action = $_POST['action'];
|
||||
$search = $_POST['search'];
|
||||
$search = $_POST['search'] ?? '';
|
||||
$number_translations = $_POST['number_translations'];
|
||||
}
|
||||
|
||||
@@ -95,7 +95,7 @@
|
||||
}
|
||||
|
||||
//redirect the user
|
||||
header('Location: number_translations.php'.(!empty($search) ? '?search='.urlencode($search) : null));
|
||||
header('Location: number_translations.php'.(!empty($search) ? '?search='.urlencode($search) : ''));
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
//get posted data
|
||||
if (!empty($_POST['phrases'])) {
|
||||
$action = $_POST['action'];
|
||||
$search = $_POST['search'];
|
||||
$search = $_POST['search'] ?? '';
|
||||
$phrases = $_POST['phrases'];
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
break;
|
||||
}
|
||||
|
||||
header('Location: phrases.php'.($search != '' ? '?search='.urlencode($search) : null));
|
||||
header('Location: phrases.php'.($search != '' ? '?search='.urlencode($search) : ''));
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
//get posted data
|
||||
if (is_array($_POST['pin_numbers'])) {
|
||||
$action = $_POST['action'];
|
||||
$search = $_POST['search'];
|
||||
$search = $_POST['search'] ?? '';
|
||||
$pin_numbers = $_POST['pin_numbers'];
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
break;
|
||||
}
|
||||
|
||||
header('Location: pin_numbers.php'.($search != '' ? '?search='.urlencode($search) : null));
|
||||
header('Location: pin_numbers.php'.($search != '' ? '?search='.urlencode($search) : ''));
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -295,7 +295,7 @@
|
||||
break;
|
||||
}
|
||||
|
||||
header('Location: recordings.php'.($search != '' ? '?search='.urlencode($search) : null));
|
||||
header('Location: recordings.php'.($search != '' ? '?search='.urlencode($search) : ''));
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
//get common submitted data
|
||||
if (!empty($_REQUEST)) {
|
||||
$show = $_REQUEST['show'] ?? null;
|
||||
$search = $_REQUEST['search'] ?? null;
|
||||
$search = $_REQUEST['search'] ?? '';
|
||||
$profile = $_REQUEST['profile'] ?? null;
|
||||
}
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
//get posted data
|
||||
if (!empty($_POST['ring_groups'])) {
|
||||
$action = $_POST['action'];
|
||||
$search = $_POST['search'];
|
||||
$search = $_POST['search'] ?? '';
|
||||
$ring_groups = $_POST['ring_groups'];
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
break;
|
||||
}
|
||||
|
||||
header('Location: ring_groups.php'.($search != '' ? '?search='.urlencode($search) : null));
|
||||
header('Location: ring_groups.php'.($search != '' ? '?search='.urlencode($search) : ''));
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
//get the http post data
|
||||
if (!empty($_POST['sip_profiles'])) {
|
||||
$action = $_POST['action'];
|
||||
$search = $_POST['search'];
|
||||
$search = $_POST['search'] ?? '';
|
||||
$sip_profiles = $_POST['sip_profiles'];
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
break;
|
||||
}
|
||||
|
||||
header('Location: sip_profiles.php'.(!empty($search) ? '?search='.urlencode($search) : null));
|
||||
header('Location: sip_profiles.php'.(!empty($search) ? '?search='.urlencode($search) : ''));
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
//get the http post data
|
||||
if (!empty($_POST['sofia_global_settings'])) {
|
||||
$action = $_POST['action'];
|
||||
$search = $_POST['search'];
|
||||
$search = $_POST['search'] ?? '';
|
||||
$sofia_global_settings = $_POST['sofia_global_settings'];
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
}
|
||||
|
||||
//redirect the user
|
||||
header('Location: sofia_global_settings.php'.($search != '' ? '?search='.urlencode($search) : null));
|
||||
header('Location: sofia_global_settings.php'.($search != '' ? '?search='.urlencode($search) : ''));
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
//get the http post data
|
||||
if (!empty($_POST['streams'])) {
|
||||
$action = $_POST['action'];
|
||||
$search = $_POST['search'];
|
||||
$search = $_POST['search'] ?? '';
|
||||
$streams = $_POST['streams'];
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
break;
|
||||
}
|
||||
|
||||
header('Location: streams.php'.(!empty($search) ? '?search='.urlencode($search) : null));
|
||||
header('Location: streams.php'.(!empty($search) ? '?search='.urlencode($search) : ''));
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
//get the http post data
|
||||
if (!empty($_POST['time_conditions']) && is_array($_POST['time_conditions'])) {
|
||||
$action = $_POST['action'];
|
||||
$search = $_POST['search'];
|
||||
$search = $_POST['search'] ?? '';
|
||||
$time_conditions = $_POST['time_conditions'];
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
break;
|
||||
}
|
||||
|
||||
header('Location: time_conditions.php'.($search != '' ? '?search='.urlencode($search) : null));
|
||||
header('Location: time_conditions.php'.($search != '' ? '?search='.urlencode($search) : ''));
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
break;
|
||||
}
|
||||
|
||||
header('Location: vars.php'.($search != '' ? '?search='.urlencode($search) : null));
|
||||
header('Location: vars.php'.($search != '' ? '?search='.urlencode($search) : ''));
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
break;
|
||||
}
|
||||
|
||||
header('Location: voicemails.php'.($search != '' ? '?search='.urlencode($search) : null));
|
||||
header('Location: voicemails.php'.($search != '' ? '?search='.urlencode($search) : ''));
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user