bug day...

This commit is contained in:
Shini31 2016-06-07 17:26:55 +02:00
parent bf984c2e06
commit fdea339f95
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ sub api_request {
eval { eval {
$webcontent = $json->decode($jsoncontent); $webcontent = $json->decode($jsoncontent);
}; };
if ($self->{port_infos}->{name} eq '') { if ($webcontent->{port}->{name} eq '') {
$self->{port_infos}->{name} = "unknown"; $self->{port_infos}->{name} = "unknown";
} else { } else {
$self->{port_infos}->{name} = $webcontent->{port}->{name}; $self->{port_infos}->{name} = $webcontent->{port}->{name};