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;
|
return undef;
|
||||||
}
|
}
|
||||||
my $res = $sth->execute($id);
|
my $res = $sth->execute($id);
|
||||||
if ( $res ) {
|
if ( !$res ) {
|
||||||
Error("Can't execute '$sql': ".$sth->errstr());
|
Error("Can't execute '$sql': ".$sth->errstr());
|
||||||
return undef;
|
return undef;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue