mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-11-30 12:14:36 -05:00
Merge pull request #6147 from singhharsh1708/fix/zmtrigger-mode-check
fix: zmtrigger warns when triggering a monitor that does not record
This commit is contained in:
1 file changed
+2
-2
@@ -358,11 +358,11 @@ sub handleMessage {
|
||||
handleDelay($delay, $connection, $action_text);
|
||||
}
|
||||
} elsif ( $action =~ /^(on|off)(?:[ \+](\d+))?$/ ) {
|
||||
if ( !$monitor->{Capturing} eq 'None' ) {
|
||||
if ( $monitor->{Capturing} eq 'None' ) {
|
||||
Warning('Capturing not enabled on monitor '.$id);
|
||||
return;
|
||||
}
|
||||
if ( !$monitor->{Recording} eq 'None' ) {
|
||||
if ( $monitor->{Recording} eq 'None' ) {
|
||||
Warning('Recording not enabled on monitor '.$id);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user