fix missing negation when executing sql... should be scripts/ZoneMinder/lib/ZoneMinder/Database.pmres
parent
1aad1f765d
commit
57316aac6e
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue