fixing bugs
This commit is contained in:
parent
65cfad4096
commit
a92453d33f
1 changed files with 3 additions and 3 deletions
|
|
@ -116,12 +116,12 @@ The value to match.
|
|||
|
||||
=cut
|
||||
|
||||
sub deleteName {
|
||||
sub deleteNameByValue {
|
||||
my $self = shift;
|
||||
my $name = shift;
|
||||
my $value = shift;
|
||||
return undef unless ($name);
|
||||
delete $self->{_data}{$name};
|
||||
return undef unless ($name and $value);
|
||||
delete $self->{_data}{$name} if ($self->{_data}{$name} eq $value);
|
||||
$self->session->db->write("delete from userSessionScratch where name=? and value=?", [$name,$value]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue