2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

01_FHEMWEB.pm: Another fix for plotEmbed, after the warning message was corrected (Forum #91956)

git-svn-id: https://svn.fhem.de/fhem/trunk@17512 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2018-10-12 07:38:52 +00:00
parent 39cae61773
commit 22eda2a3ae

View File

@ -1913,6 +1913,7 @@ FW_showRoom()
my %res;
my ($idx,$svgIdx) = (1,1);
@atEnds = sort { $sortIndex{$a} cmp $sortIndex{$b} } @atEnds;
$FW_svgData{$FW_cname} = { FW_RET=>$FW_RET, RES=>\%res, ATENDS=>\@atEnds };
foreach my $d (@atEnds) {
no strict "refs";
my $fn = $modules{$defs{$d}{TYPE}}{FW_summaryFn};
@ -1936,11 +1937,7 @@ sub
FW_svgDone($$$)
{
my ($res, $atEnds, $delayedReturn) = @_;
if(int(keys %{$res}) != int(@{$atEnds})) {
$FW_svgData{$FW_cname} = { FW_RET=>$FW_RET, RES=>$res, ATENDS=>$atEnds };
return -2 ;
}
return -2 if(int(keys %{$res}) != int(@{$atEnds}));
foreach my $d (@{$atEnds}) {
FW_pO $res->{$d};
@ -1956,7 +1953,6 @@ FW_svgCollect($)
{
my ($cname,$d,$enc) = split(",",$_[0],3);
my $h = $FW_svgData{$cname};
return if(!$h); #91956
my ($res, $atEnds) = ($h->{RES}, $h->{ATENDS});
$res->{$d} = decode_base64($enc);
return if(int(keys %{$res}) != int(@{$atEnds}));