From b3fb68b2932d5ceb76d0d64da36e3fa2063b8735 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 25 Jul 2023 13:24:57 -0400 Subject: [PATCH] Fix test for undef --- scripts/ZoneMinder/lib/ZoneMinder/Control/Trendnet.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ZoneMinder/lib/ZoneMinder/Control/Trendnet.pm b/scripts/ZoneMinder/lib/ZoneMinder/Control/Trendnet.pm index 4b1ecea45..46984c08f 100644 --- a/scripts/ZoneMinder/lib/ZoneMinder/Control/Trendnet.pm +++ b/scripts/ZoneMinder/lib/ZoneMinder/Control/Trendnet.pm @@ -181,8 +181,8 @@ sub sendCmdPost { my $url = shift; my $form = shift; - if ($url eq undef) { - Error('url passed to sendCmdPost is undefined.'); + if (!$url) { + Error('no url passed to sendCmdPost'); return -1; }