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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user