|
@@ -35,9 +35,8 @@ while (0 < $query_count--) {
|
|
// Use the PHP standard JSON encoder.
|
|
// Use the PHP standard JSON encoder.
|
|
// http://www.php.net/manual/en/function.json-encode.php
|
|
// http://www.php.net/manual/en/function.json-encode.php
|
|
if (count($arr) == 1) {
|
|
if (count($arr) == 1) {
|
|
- echo json_encode($arr[0])
|
|
|
|
-}
|
|
|
|
-else {
|
|
|
|
- echo json_encode($arr);
|
|
|
|
|
|
+ $arr = $arr[0];
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+echo json_encode($arr);
|
|
?>
|
|
?>
|