Changes up to 2.3.7 merged into unstable branch.
[fa-stable.git] / admin / gl_setup.php
index 49710317aa64cd2eb9ae95c0b4a071939a0050bd..1263be92747f82cce2063156f1beb066c195d0cd 100644 (file)
@@ -47,7 +47,7 @@ function can_process()
        }
 
        $grn_act = get_company_pref('grn_clearing_act');
-       if (get_post('grn_clearing_act') != $grn_act && db_num_rows(get_grn_items(0, '', true)))
+       if ((get_post('grn_clearing_act',0) != $grn_act) && db_num_rows(get_grn_items(0, '', true)))
        {
                display_error(_("Before GRN Clearing Account can be changed all GRNs have to be invoiced"));
                $_POST['grn_clearing_act'] = $grn_act;