Initialized upgrade procedures for FA 2.4
[fa-stable.git] / reporting / rep705.php
index e035869f3cb4b1bfab44c0c20a3dc1df4c88d7e1..258307430f687146a95a03a33ea9274b49252a1f 100644 (file)
@@ -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];