Browse Source

verify Fixed php db/query/update tests

Mike Smith 11 years ago
parent
commit
8b7809c35d
1 changed files with 6 additions and 1 deletions
  1. 6 1
      php/dbraw.php

+ 6 - 1
php/dbraw.php

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