php 8.1 bug. Parameter to urlencode cannot be null. Fixed.
authorJoe <joe.hunt.consulting@gmail.com>
Sun, 10 Jul 2022 22:31:59 +0000 (00:31 +0200)
committerJoe <joe.hunt.consulting@gmail.com>
Sun, 10 Jul 2022 22:31:59 +0000 (00:31 +0200)
reporting/includes/reporting.inc

index 764eb469378c28d19d76b3b54ed2dd4b5d5b675b..dd4b5a5c2214c579f251174f6a72e875265b1899 100644 (file)
@@ -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);