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 };
|
||||
|
||||
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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue