Commit f2066872 authored by Jasin's avatar Jasin

Fixed

parent bd418aab
......@@ -43,7 +43,7 @@ function getAverageValue($lineLabel)
array_push($temp, $row);
}
return (json_encode($temp));
return (json_encode($temp[0]));
}
function getMinValue($lineLabel)
......@@ -58,8 +58,6 @@ function getMinValue($lineLabel)
die ("Fehler beim lesen der Datenbank");
}
var_dump($res);
$temp = array();
while($row = $res->fetch_assoc())
......@@ -67,7 +65,7 @@ function getMinValue($lineLabel)
array_push($temp, $row);
}
return (json_encode($temp));
return (json_encode($temp[0]));
}
function getMaxValue($lineLabel)
......@@ -89,5 +87,5 @@ function getMaxValue($lineLabel)
array_push($temp, $row);
}
return (json_encode($temp));
return (json_encode($temp[0]));
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment