$result = get_gl_accounts(null, null, $type);
while ($account=db_fetch($result))
{
- if ($tags != -1)
+ if ($tags != -1 && is_array($tags) && $tags[0] != false)
{
if (!is_record_in_tags($tags, TAG_ACCOUNT, $account['account_code']))
continue;
}
$totals_arr = display_type($accounttype["id"], $accounttype["name"], $from, $to, $begin, $end, $compare, $convert, $dec,
- $pdec, $rep, $dimension, $dimension2, $pg, $graphics);
+ $pdec, $rep, $dimension, $dimension2, $tags, $pg, $graphics);
$per_balance_total += $totals_arr[0];
$acc_balance_total += $totals_arr[1];
}