X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep705.php;h=258307430f687146a95a03a33ea9274b49252a1f;hb=b2ddc6a6ed30ad69721b7d54610935020cf24247;hp=e035869f3cb4b1bfab44c0c20a3dc1df4c88d7e1;hpb=7fae690528df9b851fba309b71bf7c3b961c9dd9;p=fa-stable.git diff --git a/reporting/rep705.php b/reporting/rep705.php index e035869f..25830743 100644 --- a/reporting/rep705.php +++ b/reporting/rep705.php @@ -84,7 +84,7 @@ function display_type ($type, $typename, $yr, $mo, $convert, &$dec, &$rep, $dime $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; @@ -136,7 +136,7 @@ function display_type ($type, $typename, $yr, $mo, $convert, &$dec, &$rep, $dime $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];