Paging [Function]: Trim leading ampersand to prevent empty '&=' in param string.

This commit is contained in:
fusionate
2026-02-20 17:40:45 -07:00
committed by GitHub
parent 5919331912
commit 012e2cc382

View File

@@ -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) {