fix typos in Shop/Cart.pm
This commit is contained in:
parent
c8e1c3c3d3
commit
c2951f9456
1 changed files with 2 additions and 2 deletions
|
|
@ -115,7 +115,7 @@ sub delete {
|
||||||
$self->empty;
|
$self->empty;
|
||||||
$self->session->db->write("delete from cart where cartId=?",[$self->getId]);
|
$self->session->db->write("delete from cart where cartId=?",[$self->getId]);
|
||||||
undef $self;
|
undef $self;
|
||||||
%itemCache{ref $self} = {};
|
$itemCache{ref $self} = {};
|
||||||
return undef;
|
return undef;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -132,7 +132,7 @@ sub empty {
|
||||||
foreach my $item (@{$self->getItems}) {
|
foreach my $item (@{$self->getItems}) {
|
||||||
$item->remove;
|
$item->remove;
|
||||||
}
|
}
|
||||||
%itemCache{ref $self} = {};
|
$itemCache{ref $self} = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue