From: Joe Date: Sun, 10 Jul 2022 22:31:59 +0000 (+0200) Subject: php 8.1 bug. Parameter to urlencode cannot be null. Fixed. X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=5bdea31e9c0265bf88b068d5def4908b613afa8c;p=fa-stable.git php 8.1 bug. Parameter to urlencode cannot be null. Fixed. --- 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);