mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-21 10:26:30 +00:00
Paging [Function]: Trim leading ampersand to prevent empty '&=' in param string.
This commit is contained in:
@@ -58,6 +58,7 @@ function paging($num_rows, $param, $rows_per_page, $mini = false, $result_count
|
||||
//sanitize the parameters
|
||||
$sanitized_parameters = '';
|
||||
if (isset($param) && !empty($param)) {
|
||||
$param = trim($param, '&');
|
||||
$param_array = explode("&", $param);
|
||||
if (is_array($param_array)) {
|
||||
foreach ($param_array as $row) {
|
||||
|
||||
Reference in New Issue
Block a user