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