From 5bdea31e9c0265bf88b068d5def4908b613afa8c Mon Sep 17 00:00:00 2001 From: Joe Date: Mon, 11 Jul 2022 00:31:59 +0200 Subject: [PATCH] php 8.1 bug. Parameter to urlencode cannot be null. Fixed. --- reporting/includes/reporting.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reporting/includes/reporting.inc b/reporting/includes/reporting.inc index 764eb469..dd4b5a5c 100644 --- a/reporting/includes/reporting.inc +++ b/reporting/includes/reporting.inc @@ -145,7 +145,8 @@ function print_link($link_text, $rep, $pars = array(), $dir = '', $id = default_focus($id); foreach($pars as $par => $val) { - $pars[$par] = "$par=".urlencode($val); + if ($val != null) + $pars[$par] = "$par=".urlencode($val); } $pars[] = 'REP_ID='.urlencode($rep); $url .= implode ('&', $pars); -- 2.30.2