X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Fmanage%2Fgl_accounts.php;h=345d3791fa8a17e21e71fbfc15858e30286932e9;hb=84e2db4845a51b074d9441520a0025987fdb4f70;hp=5d918cc8e8a1e559635abd2d8756a4a98c27e1b6;hpb=e05281d838989a2e05b5f916a0bacd6d3f2cc3f0;p=fa-stable.git diff --git a/gl/manage/gl_accounts.php b/gl/manage/gl_accounts.php index 5d918cc8..345d3791 100644 --- a/gl/manage/gl_accounts.php +++ b/gl/manage/gl_accounts.php @@ -76,7 +76,7 @@ if (isset($_POST['add']) || isset($_POST['update'])) if ($selected_account) { - if (check_value('inactive') && is_bank_account($_POST['account_code'])) + if (get_post('inactive') == 1 && is_bank_account($_POST['account_code'])) { display_error(_("The account belongs to a bank account and cannot be inactivated.")); }