replace undef() with delete() (tip from Martin Fischer)

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@2133 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch
2012-11-17 22:51:34 +00:00
parent 1cd72805c4
commit d9d1545670

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