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:
parent
1c2d293931
commit
7e930295c8
@ -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" );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user