fix uninitialized value

fix uninitialized value in string eq at fhem.pl line 4962

[Ticket: #6]
This commit is contained in:
Marko Oldenburg 2022-03-13 07:26:24 +01:00
parent 115c046ffb
commit b0a0d8fa99
3 changed files with 5 additions and 4 deletions

View File

@ -368,7 +368,7 @@ __END__
],
"release_status": "stable",
"license": "GPL_2",
"version": "v3.6.1",
"version": "v3.6.2",
"author": [
"Marko Oldenburg <fhemdevelopment@cooltux.net>"
],

View File

@ -1,2 +1,2 @@
UPD 2022-03-10_09:40:57 18968 FHEM/82_LGTV_WebOS.pm
UPD 2022-03-10_09:28:02 54278 lib/FHEM/Devices/LGTV/LGTVWebOS.pm
UPD 2022-03-13_07:23:31 18968 FHEM/82_LGTV_WebOS.pm
UPD 2022-03-13_07:23:19 54336 lib/FHEM/Devices/LGTV/LGTVWebOS.pm

View File

@ -1288,7 +1288,8 @@ sub WriteReadings {
if ( exists( $decode_json->{payload}{'channelName'} ) );
::readingsBulkUpdateIfChanged( $hash, 'channelMedia',
$decode_json->{payload}{'channelTypeName'} )
if ( exists( $decode_json->{payload}{'channelTypeName'} ) );
if ( exists( $decode_json->{payload}{'channelTypeName'} )
&& $decode_json->{payload}{'channelTypeName'} );
}
else {