mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2025-12-23 22:37:53 -05:00
Prevent warning when empty ControlDevice
This commit is contained in:
@@ -118,7 +118,7 @@ Debug("Have " . $+{PASSWORD});
|
||||
}
|
||||
# Save the base url
|
||||
$self->{BaseURL} = "http://$$self{host}:$$self{port}";
|
||||
$ChannelID = $self->{Monitor}{ControlDevice} if $self->{Monitor}{ControlDevice} =~ /^\d+$/;
|
||||
$ChannelID = $self->{Monitor}{ControlDevice} if $self->{Monitor}{ControlDevice} and ($self->{Monitor}{ControlDevice} =~ /^\d+$/);
|
||||
$$self{realm} = defined($self->{Monitor}->{ControlDevice}) ? $self->{Monitor}->{ControlDevice} : '';
|
||||
|
||||
# Save and test the credentials
|
||||
|
||||
Reference in New Issue
Block a user