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:
b57cb5b
)
php 8. cannot generate recurring invoices after upgrade to 2.4.12. Fixed.
author
Joe
<joe.hunt.consulting@gmail.com>
Fri, 22 Jul 2022 21:56:47 +0000
(23:56 +0200)
committer
Joe
<joe.hunt.consulting@gmail.com>
Fri, 22 Jul 2022 21:56:47 +0000
(23:56 +0200)
reporting/includes/reporting.inc
patch
|
blob
|
history
diff --git
a/reporting/includes/reporting.inc
b/reporting/includes/reporting.inc
index dd4b5a5c2214c579f251174f6a72e875265b1899..4bcdad8397257c95ac4e3b6eeaf6f9d32839fcb5 100644
(file)
--- a/
reporting/includes/reporting.inc
+++ b/
reporting/includes/reporting.inc
@@
-140,17
+140,16
@@
function print_link($link_text, $rep, $pars = array(), $dir = '',
$icon=false, $class='printlink', $id='')
{
global $path_to_root, $SysPrefs;
$icon=false, $class='printlink', $id='')
{
global $path_to_root, $SysPrefs;
-
$url = $dir == '' ? $path_to_root.'/reporting/prn_redirect.php?' : $dir;
$id = default_focus($id);
$url = $dir == '' ? $path_to_root.'/reporting/prn_redirect.php?' : $dir;
$id = default_focus($id);
+ $parm = array();
foreach($pars as $par => $val) {
foreach($pars as $par => $val) {
- if ($val !=
null
)
- $par
s[$par
] = "$par=".urlencode($val);
+ if ($val !=
""
)
+ $par
m[
] = "$par=".urlencode($val);
}
}
- $pars[] = 'REP_ID='.urlencode($rep);
- $url .= implode ('&', $pars);
-
+ $parm[] = 'REP_ID='.urlencode($rep);
+ $url .= implode ('&', $parm);
if ($class != '')
$class = $SysPrefs->pdf_debug ? '' : " class='$class'";
if ($id != '')
if ($class != '')
$class = $SysPrefs->pdf_debug ? '' : " class='$class'";
if ($id != '')