Browse Source

Update api.php

Maurits van der Schee 10 years ago
parent
commit
e7c9381048
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      api.php

+ 2
- 1
api.php View File

@@ -569,8 +569,9 @@ class REST_CRUD_API {
569 569
 			}
570 570
 			$this->close($result);
571 571
 			echo ']';
572
+			if ($count) echo ',';
572 573
 		}
573
-		if ($count) echo ',"results":'.$count;
574
+		if ($count) echo '"results":'.$count;
574 575
 		echo '}';
575 576
 		// prepare for other tables
576 577
 		foreach (array_keys($collect) as $t) {

Loading…
Cancel
Save