X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Fgl_setup.php;h=1ef3e40e06c3272f150606f0907dee47161b4604;hb=ef70e6c138561051def03df7e4264391dc61ea73;hp=79b84ddf49f44af17e675c6d7e8753f837fde3dd;hpb=506be1c091085ab0dc58fb3f04a2c5bb162fbc82;p=fa-stable.git diff --git a/admin/gl_setup.php b/admin/gl_setup.php index 79b84ddf..1ef3e40e 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;