mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-26 16:28:31 -04:00
Fix test for undef
This commit is contained in:
1 parent
c54a20ba70
commit
b3fb68b293
1 file changed
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user