Explorar el Código

Update api.php

Maurits van der Schee hace 10 años
padre
commit
e7c9381048
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2
    1
      api.php

+ 2
- 1
api.php Ver fichero

@@ -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…
Cancelar
Guardar