projects
/
fa-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2460e8
)
php 8.1 bug. Parameter to urlencode cannot be null. Fixed.
author
Joe
<joe.hunt.consulting@gmail.com>
Sun, 10 Jul 2022 22:31:59 +0000
(
00:31
+0200)
committer
Joe
<joe.hunt.consulting@gmail.com>
Sun, 10 Jul 2022 22:31:59 +0000
(
00:31
+0200)
reporting/includes/reporting.inc
patch
|
blob
|
history
diff --git
a/reporting/includes/reporting.inc
b/reporting/includes/reporting.inc
index 764eb469378c28d19d76b3b54ed2dd4b5d5b675b..dd4b5a5c2214c579f251174f6a72e875265b1899 100644
(file)
--- 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);