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:
@@ -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}));
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user