Fix a bug in the delete method, execute is passed an array ref.
Update POD about constructors/instanciators.
This commit is contained in:
parent
4ab8102d63
commit
4f5e3a6a43
1 changed files with 3 additions and 2 deletions
|
|
@ -125,7 +125,7 @@ Deletes this message from the inbox.
|
|||
sub delete {
|
||||
my $self = shift;
|
||||
my $sth = $self->session->db->prepare("delete from inbox where messageId=?");
|
||||
$sth->execute($self->getId);
|
||||
$sth->execute([$self->getId]);
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
@ -189,7 +189,8 @@ sub getId {
|
|||
|
||||
=head2 new ( session, messageId )
|
||||
|
||||
Constructor.
|
||||
Constructor used to access existing messages. Use create for making
|
||||
new messages.
|
||||
|
||||
=head3 session
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue