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 be6033c9b6
commit 1b07630495

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