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:
@@ -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
|
||||
Reference in New Issue
Block a user