Fix bug: warning when there is no acting user
This commit is contained in:
parent
9797e3c1c8
commit
e00fc00664
1 changed files with 2 additions and 0 deletions
|
@ -15,6 +15,8 @@ sub _box {
|
|||
sub hook_checkout_done {
|
||||
my ($class, $cart, $user, $transaction_id) = @_;
|
||||
|
||||
defined $user or return; # hacks like 'undo' don't have an acting user
|
||||
|
||||
my $balance = RevBank::Users::balance($user) or return;
|
||||
my $since = RevBank::Users::since($user);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue