Browse Source

verify Syntax error

Mike Smith 11 years ago
parent
commit
25f3d8751f
1 changed files with 3 additions and 4 deletions
  1. 3 4
      php/dbraw.php

+ 3 - 4
php/dbraw.php

@@ -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);
 ?>
 ?>