mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-07 12:58:13 +00:00
replace undef() with delete() (tip from Martin Fischer)
git-svn-id: https://svn.fhem.de/fhem/trunk@2133 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
9196c44525
commit
e1cfd7a642
@ -131,7 +131,7 @@ YAMAHA_AVR_GetStatus($;$)
|
||||
}
|
||||
else
|
||||
{
|
||||
undef($hash->{READINGS}{output}) if(defined($hash->{READINGS}{output}));
|
||||
delete($hash->{READINGS}{output}) if(defined($hash->{READINGS}{output}));
|
||||
|
||||
}
|
||||
|
||||
@ -602,7 +602,7 @@ sub YAMAHA_AVR_getInputs($$)
|
||||
return undef unless (defined($response));
|
||||
|
||||
|
||||
undef($hash->{helper}{INPUTS}) if(defined($hash->{helper}{INPUTS}));
|
||||
delete($hash->{helper}{INPUTS}) if(defined($hash->{helper}{INPUTS}));
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user