Update 59_Weather.pm

Bugfix zum letzten merge meines patches:
in sub WeatherAsHtmlH($;$$)  fehlte:
    $f =~ tr/dh/./cd;
    $f = "h" if ( !$f || length($f) > 1);
    $items =~ tr/0-9/./cd;
    $items = 6   if ( !$items );
This commit is contained in:
Lippie81 2019-03-13 07:00:45 +01:00 committed by GitHub
parent 1c2d293931
commit 7e930295c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -806,6 +806,11 @@ sub WeatherAsHtmlH($;$$) {
if($op1 =~ /[0-9]/g){ $items = $op1; }
if($op2 =~ /[dh]/g){ $f = $op2; }
$f =~ tr/dh/./cd;
$f = "h" if ( !$f || length($f) > 1);
$items =~ tr/0-9/./cd;
$items = 6 if ( !$items );
return "$d is not a Weather instance<br>"
if ( !$defs{$d} || $defs{$d}->{TYPE} ne "Weather" );