use ::Database::dbh instead of 3013self{dbh}
This commit is contained in:
parent
2663781adc
commit
63ac75b440
|
@ -112,8 +112,8 @@ sub Execute {
|
||||||
$sql =~ s/zmSystemLoad/$load/g;
|
$sql =~ s/zmSystemLoad/$load/g;
|
||||||
}
|
}
|
||||||
|
|
||||||
my $sth = $$self{dbh}->prepare_cached( $sql )
|
my $sth = $ZoneMinder::Database::dbh->prepare_cached( $sql )
|
||||||
or Fatal( "Can't prepare '$sql': ".$$self{dbh}->errstr() );
|
or Fatal( "Can't prepare '$sql': ".$ZoneMinder::Database::dbh->errstr() );
|
||||||
my $res = $sth->execute();
|
my $res = $sth->execute();
|
||||||
if ( !$res ) {
|
if ( !$res ) {
|
||||||
Error( "Can't execute filter '$sql', ignoring: ".$sth->errstr() );
|
Error( "Can't execute filter '$sql', ignoring: ".$sth->errstr() );
|
||||||
|
|
Loading…
Reference in New Issue