mirror of
https://github.com/pragma-/pbot.git
synced 2025-05-03 21:27:31 +02:00
Prevent access to undefined db handle
This commit is contained in:
parent
d638370cdc
commit
9b1cdffa6b
@ -1769,6 +1769,8 @@ sub get_message_account_id {
|
|||||||
sub commit_message_history {
|
sub commit_message_history {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
|
|
||||||
|
return if not $self->{dbh};
|
||||||
|
|
||||||
if($self->{new_entries} > 0) {
|
if($self->{new_entries} > 0) {
|
||||||
# $self->{pbot}->{logger}->log("Commiting $self->{new_entries} messages to SQLite\n");
|
# $self->{pbot}->{logger}->log("Commiting $self->{new_entries} messages to SQLite\n");
|
||||||
eval {
|
eval {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user