mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
fixing use of uninitialized value errors in rare circumstances
git-svn-id: https://svn.fhem.de/fhem/trunk@3164 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
b5999e072f
commit
1b67e05d40
@ -261,12 +261,12 @@ FB_CALLMONITOR_Read($)
|
||||
}
|
||||
elsif ($array[1] eq "DISCONNECT")
|
||||
{
|
||||
if (($array[3] eq "0") and ($hash->{helper}{MISSED_CALL_DETECTION}{$array[2]}{EVENT} eq "RING"))
|
||||
if (($array[3] eq "0") and (exists($hash->{helper}{MISSED_CALL_DETECTION}{$array[2]}) and $hash->{helper}{MISSED_CALL_DETECTION}{$array[2]}{EVENT} eq "RING"))
|
||||
{
|
||||
readingsBulkUpdate($hash, "missed_call", $hash->{helper}{MISSED_CALL_DETECTION}{$array[2]}{NUMBER})
|
||||
}
|
||||
|
||||
delete($hash->{helper}{MISSED_CALL_DETECTION}{$array[2]}) if(defined($hash->{helper}{MISSED_CALL_DETECTION}{$array[2]}));
|
||||
delete($hash->{helper}{MISSED_CALL_DETECTION}{$array[2]}) if(exists($hash->{helper}{MISSED_CALL_DETECTION}{$array[2]}));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user