2
0
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:
markusbloch 2012-11-17 22:51:34 +00:00
parent 9196c44525
commit e1cfd7a642

View File

@ -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}));