$input_error = 0;
- if (strlen($_POST['account_code']) == 0)
+ if (strlen(trim($_POST['account_code'])) == 0)
{
$input_error = 1;
display_error( _("The account code must be entered."));
set_focus('account_code');
}
- elseif (strlen($_POST['account_name']) == 0)
+ elseif (strlen(trim($_POST['account_name'])) == 0)
{
$input_error = 1;
display_error( _("The account name cannot be empty."));
if (db_has_gl_accounts())
{
- start_table("class = 'tablestyle_noborder'");
+ start_table(TABLESTYLE_NOBORDER);
start_row();
gl_all_accounts_list_cells(null, 'AccountList', null, false, false,
_('New account'), true, check_value('show_inactive'));
}
br(1);
-start_table($table_style2);
+start_table(TABLESTYLE2);
if ($selected_account != "")
{