Prevent access to undefined db handle

This commit is contained in:
Pragmatic Software 2017-08-28 13:53:03 -07:00
parent d638370cdc
commit 9b1cdffa6b
1 changed files with 2 additions and 0 deletions

View File

@ -1769,6 +1769,8 @@ sub get_message_account_id {
sub commit_message_history {
my $self = shift;
return if not $self->{dbh};
if($self->{new_entries} > 0) {
# $self->{pbot}->{logger}->log("Commiting $self->{new_entries} messages to SQLite\n");
eval {