PHP 7.4 compatibility bug
[fa-stable.git] / gl / includes / db / gl_db_trans.inc
index fc535ad6bba5a727f8c3e6f1dd94c2fc61b7919d..459db9f4ceafe826a67a5b20bdca3d2d79729a8c 100644 (file)
@@ -462,7 +462,7 @@ function add_trans_tax_details($trans_type, $trans_no, $tax_id, $rate, $included
        // guess tax register if not set
        if (!isset($reg_type))
                $reg_type = in_array($trans_type, array(ST_SUPPINVOICE, ST_SUPPCREDIT)) ? TR_OUTPUT
-                               : in_array($trans_type, array(ST_SALESINVOICE, ST_CUSTCREDIT)) ? TR_INPUT : null;
+                               : (in_array($trans_type, array(ST_SALESINVOICE, ST_CUSTCREDIT)) ? TR_INPUT : null);
 
        $sql = "INSERT INTO ".TB_PREF."trans_tax_details 
                (trans_type, trans_no, tran_date, tax_type_id, rate, ex_rate,