use ::Database::dbh instead of 3013self{dbh}

This commit is contained in:
Isaac Connor 2016-05-30 09:27:36 -04:00
parent 2663781adc
commit 63ac75b440
1 changed files with 2 additions and 2 deletions

View File

@ -112,8 +112,8 @@ sub Execute {
$sql =~ s/zmSystemLoad/$load/g;
}
my $sth = $$self{dbh}->prepare_cached( $sql )
or Fatal( "Can't prepare '$sql': ".$$self{dbh}->errstr() );
my $sth = $ZoneMinder::Database::dbh->prepare_cached( $sql )
or Fatal( "Can't prepare '$sql': ".$ZoneMinder::Database::dbh->errstr() );
my $res = $sth->execute();
if ( !$res ) {
Error( "Can't execute filter '$sql', ignoring: ".$sth->errstr() );