From 900132788341bbd18d991f44c01ee65191ffcd40 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Mon, 14 Jun 2021 09:45:08 -0400 Subject: [PATCH] Fix incorrect use of == instead eq --- scripts/ZoneMinder/lib/ZoneMinder/Control/onvif.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/ZoneMinder/lib/ZoneMinder/Control/onvif.pm b/scripts/ZoneMinder/lib/ZoneMinder/Control/onvif.pm index 12a78144c..d8006dde9 100644 --- a/scripts/ZoneMinder/lib/ZoneMinder/Control/onvif.pm +++ b/scripts/ZoneMinder/lib/ZoneMinder/Control/onvif.pm @@ -340,9 +340,9 @@ sub moveCamera { my $type = shift; my $x = shift; my $y = shift; - my $msg_move_body = ""; + my $msg_move_body = ''; - if ( $type == "move" ){ + if ( $type eq 'move' ){ $msg_move_body = ' @@ -356,7 +356,7 @@ sub moveCamera { '; - } elsif ( $type == "zoom" ) { + } elsif ( $type eq 'zoom' ) { $msg_move_body = ' @@ -371,7 +371,6 @@ sub moveCamera { } return $msg_move_body; - } #Up Arrow