Wrong variable...

This commit is contained in:
Juerd Waalboer 2013-02-28 16:36:48 +01:00
parent 6372e30cac
commit 6a614830a6

View file

@ -37,7 +37,7 @@ sub reason :Tab(whatevah) {
my $user = $self->{user};
my $amount = $self->{amount};
if ($user = parse_user($input)) {
if ($input = parse_user($input)) {
$cart->add(undef, -$amount, "Given to $user");
$cart->add($user, +$amount, "Received from \$you");
$cart->checkout($input);