Merged bugfixes since 2.0.6
[fa-stable.git] / gl / manage / gl_account_classes.php
index e0b6ff4ef3c54c74f3bf15b9b3bba67aea6c0bdd..6cc9a6d53aaf428c9773370d56096cebe0cd5c65 100644 (file)
@@ -24,7 +24,12 @@ simple_page_mode(true);
 
 function can_process() 
 {
-
+       if (!is_numeric($_POST['id'])) 
+       {
+               display_error( _("The account class ID must be numeric."));
+               set_focus('id');
+               return false;
+       }
        if (strlen($_POST['name']) == 0) 
        {
                display_error( _("The account class name cannot be empty."));