74_Unifi: Unifi Modul spamt Log zu, Forum #70136

git-svn-id: https://svn.fhem.de/fhem/trunk@13906 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rapster
2017-04-05 16:50:11 +00:00
parent 90f2571c1f
commit c8302b29e2

View File

@@ -810,7 +810,8 @@ sub Unifi_SetClientReadings($) {
for my $apID (keys %{$hash->{accespoints}}) {
$apRef = $hash->{accespoints}->{$apID};
if ($apRef->{mac} eq $clientRef->{ap_mac}) {
if (defined $apRef->{mac} && defined $clientRef->{ap_mac}
&& $apRef->{mac} eq $clientRef->{ap_mac}) {
$apName = ($apRef->{name}) ? $apRef->{name} : $apRef->{ip};
last;
}