Added Italian install wizard translation by Paolo Ardoino.
[fa-stable.git] / gl / manage / gl_accounts.php
index 900bf3668382403b11acfff1591896e5e191ba41..8944d385f35a311682e97a83e49197f0a969d0e5 100644 (file)
@@ -47,13 +47,13 @@ if (isset($_POST['add']) || isset($_POST['update']))
 
        $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."));