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:
@@ -39,7 +39,7 @@
|
||||
|
||||
//get posted data
|
||||
if (!empty($_POST['search'])) {
|
||||
$search = $_POST['search'];
|
||||
$search = $_POST['search'] ?? '';
|
||||
}
|
||||
|
||||
//add the search term
|
||||
|
||||
@@ -139,7 +139,7 @@
|
||||
break;
|
||||
}
|
||||
|
||||
header('Location: domains.php'.(!empty($search) ? '?search='.urlencode($search) : null));
|
||||
header('Location: domains.php'.(!empty($search) ? '?search='.urlencode($search) : ''));
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user