bugfixes for saving of charts

git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@2867 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
johannnes
2013-03-07 19:37:27 +00:00
parent f2d84d730e
commit bf7af091b2
4 changed files with 35 additions and 24 deletions

View File

@@ -810,7 +810,6 @@ sub chartQuery($@) {
if ($sql eq "error") {
return jsonError("Could not setup SQL String");
}
my ($hash, @a) = @_;
my $dbhf= $hash->{DBHF};
@@ -863,8 +862,8 @@ sub chartQuery($@) {
$jsonstring .= '":';
if (defined $data[$i]) {
my $fragment = substr($data[$i],0,2);
if ($fragment eq "[{") {
my $fragment = substr($data[$i],0,1);
if ($fragment eq "{") {
$jsonstring .= $data[$i];
} else {
$jsonstring .= '"'.$data[$i].'"';
@@ -1328,4 +1327,4 @@ sub chartQuery($@) {
</ul>
=end html_DE
=cut
=cut