projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added Italian install wizard translation by Paolo Ardoino.
[fa-stable.git]
/
gl
/
manage
/
gl_accounts.php
diff --git
a/gl/manage/gl_accounts.php
b/gl/manage/gl_accounts.php
index 900bf3668382403b11acfff1591896e5e191ba41..8944d385f35a311682e97a83e49197f0a969d0e5 100644
(file)
--- a/
gl/manage/gl_accounts.php
+++ b/
gl/manage/gl_accounts.php
@@
-47,13
+47,13
@@
if (isset($_POST['add']) || isset($_POST['update']))
$input_error = 0;
$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');
}
{
$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."));
{
$input_error = 1;
display_error( _("The account name cannot be empty."));