v6.1.4: fix bug (0.00 balance account not usable)
Introduced in f2d09b4d
This commit is contained in:
parent
1c9c35d535
commit
e3b054272d
2 changed files with 2 additions and 2 deletions
|
@ -134,7 +134,7 @@ sub assert_user($username) {
|
||||||
my $user = $users->{ lc $username };
|
my $user = $users->{ lc $username };
|
||||||
|
|
||||||
if ($user) {
|
if ($user) {
|
||||||
Carp::croak("Account $username can't be used") if not balance $username;
|
Carp::croak("Account $username can't be used") if not defined balance $username;
|
||||||
return $user->[0];
|
return $user->[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
2
revbank
2
revbank
|
@ -16,7 +16,7 @@ use RevBank::Messages;
|
||||||
use RevBank::Cart;
|
use RevBank::Cart;
|
||||||
use RevBank::Prompt;
|
use RevBank::Prompt;
|
||||||
|
|
||||||
our $VERSION = "6.1.3";
|
our $VERSION = "6.1.4";
|
||||||
our %HELP1 = (
|
our %HELP1 = (
|
||||||
"abort" => "Abort the current transaction",
|
"abort" => "Abort the current transaction",
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue