From 70039ec9b5cdf2870715245c5347152152f53a8c Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Sat, 14 May 2011 09:44:20 +0200 Subject: [PATCH] Fixed problem with GRN clearing account initialization in GL setup. --- admin/gl_setup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/gl_setup.php b/admin/gl_setup.php index 79b84dd..1ef3e40 100644 --- a/admin/gl_setup.php +++ b/admin/gl_setup.php @@ -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; -- 2.30.2