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; }