Rewritten function gl_account_in_company_defaults in gl_db_accounts.inc
[fa-stable.git] / reporting / rep705.php
index e035869f3cb4b1bfab44c0c20a3dc1df4c88d7e1..001f91fe2d10a372ef60552263702bcd695e0edc 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;