fix missing negation when executing sql... should be scripts/ZoneMinder/lib/ZoneMinder/Database.pmres

pull/2562/head
Isaac Connor 2019-02-13 11:29:07 -05:00
parent 1aad1f765d
commit 57316aac6e
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ sub zmDbGetMonitor {
return undef;
}
my $res = $sth->execute($id);
if ( $res ) {
if ( !$res ) {
Error("Can't execute '$sql': ".$sth->errstr());
return undef;
}