longpollSVG fix

git-svn-id: https://svn.fhem.de/fhem/trunk@3319 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2013-06-23 13:07:03 +00:00
parent 915df8cbb2
commit d3ed3ee144
2 changed files with 6 additions and 4 deletions

View File

@ -384,6 +384,11 @@ weblink_WriteGplot($)
my ($arg) = @_; my ($arg) = @_;
FW_digestCgi($arg); FW_digestCgi($arg);
if(!defined($FW_webArgs{cl_0})) {
return("text/html;",
"missing data in logfile: won't write incomplete .gplot definition");
}
my $hasTl; my $hasTl;
for(my $i=0; $i <= 8; $i++) { for(my $i=0; $i <= 8; $i++) {
$hasTl = 1 if($FW_webArgs{"title_$i"}); $hasTl = 1 if($FW_webArgs{"title_$i"});
@ -434,9 +439,6 @@ weblink_WriteGplot($)
print FH "plot ".join(",\\\n ", @plot)."\n"; print FH "plot ".join(",\\\n ", @plot)."\n";
close(FH); close(FH);
#foreach my $k (sort keys %FW_webArgs) {
# Log 1, "$k: $FW_webArgs{$k}";
#}
return (undef, "continue"); return (undef, "continue");
} }