projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
php 8. cannot generate recurring invoices after upgrade to 2.4.12. Fixed.
[fa-stable.git]
/
reporting
/
includes
/
reporting.inc
diff --git
a/reporting/includes/reporting.inc
b/reporting/includes/reporting.inc
index 764eb469378c28d19d76b3b54ed2dd4b5d5b675b..4bcdad8397257c95ac4e3b6eeaf6f9d32839fcb5 100644
(file)
--- a/
reporting/includes/reporting.inc
+++ b/
reporting/includes/reporting.inc
@@
-140,16
+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) {
- $pars[$par] = "$par=".urlencode($val);
+ if ($val != "")
+ $parm[] = "$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 != '')