2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-09 20:57:11 +00:00

73_km200.pm: uninitialized value on notifications corrected

git-svn-id: https://svn.fhem.de/fhem/trunk@18000 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Sailor 2018-12-18 18:26:16 +00:00
parent 0dce6083a5
commit d6c23e47c9

View File

@ -2840,7 +2840,15 @@ sub km200_ParseHttpResponseDyn($)
### Create message string with fixed blocksize
my $TempTime = $item->{t};
if ($TempTime) {$TempTime =~ s/^(.+)$/sprintf("%s%s", $1, ' 'x(20-length($1)))/e;}
if ($TempTime)
{
$TempTime =~ s/^(.+)$/sprintf("%s%s", $1, ' 'x(20-length($1)))/e;
}
else
{
$TempTime = "unknown";
}
my $TempErrorCode = $item->{dcd};
$TempErrorCode =~ s/^(.+)$/sprintf("%s%s", $1, ' 'x(3 -length($1)))/e;
my $TempAddCode = $item->{ccd};