Skip to content

Commit

Permalink
fix : The condition == 3 is always false
Browse files Browse the repository at this point in the history
  • Loading branch information
grandoc committed Jan 25, 2019
1 parent e42fe40 commit 0d089f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/accountancy/admin/accountmodel.php
Expand Up @@ -221,10 +221,10 @@
setEventMessages($langs->transnoentities("ErrorFieldRequired",$langs->transnoentities("Country")), null, 'errors');
}
}
if ($id == 3 && ! is_numeric($_POST["code"]))
if (! is_numeric($_POST["code"]))
{
$ok=0;
setEventMessages($langs->transnoentities("ErrorFieldMustBeANumeric",$langs->transnoentities("Code")), null, 'errors');
setEventMessages($langs->transnoentities("ErrorFieldMustBeANumeric", $langs->transnoentities("Code")), null, 'errors');
}

// Clean some parameters
Expand Down

0 comments on commit 0d089f2

Please sign in to comment.