73_km200.pm: uninitialized value on notifications corrected

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

View File

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