Skip to content

Commit

Permalink
Update card.php
Browse files Browse the repository at this point in the history
  • Loading branch information
frederic34 committed Nov 8, 2017
1 parent 6eb2204 commit 1ea6df1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/compta/bank/card.php
Expand Up @@ -99,7 +99,7 @@
$object->owner_address = trim($_POST["owner_address"]);

$account_number = GETPOST('account_number','alpha');
if ($account_number <= 0) { $object->account_number = ''; } else { $object->account_number = $account_number; }
if (empty($account_number) || $account_number == '-1') { $object->account_number = ''; } else { $object->account_number = $account_number; }
$fk_accountancy_journal = GETPOST('fk_accountancy_journal','int');
if ($fk_accountancy_journal <= 0) { $object->fk_accountancy_journal = ''; } else { $object->fk_accountancy_journal = $fk_accountancy_journal; }

Expand Down

0 comments on commit 1ea6df1

Please sign in to comment.