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 {
$webcontent = $json->decode($jsoncontent);
};
if ($self->{port_infos}->{name} eq '') {
if ($webcontent->{port}->{name} eq '') {
$self->{port_infos}->{name} = "unknown";
} else {
$self->{port_infos}->{name} = $webcontent->{port}->{name};