$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;
$rep->NewLine();
}
- $totals_arr = display_type($accounttype["id"], $accounttype["name"], $yr, $mo, $convert, $dec, $rep, $dimension, $dimension2);
+ $totals_arr = display_type($accounttype["id"], $accounttype["name"], $yr, $mo, $convert, $dec, $rep, $dimension, $dimension2, $tags);
for ($i = 1; $i <= 12; $i++)
{
$total[$i] += $totals_arr[$i];