Explorar o código

Updated PHP file for Category to not include item:

Axel Nordh %!s(int64=3) %!d(string=hai) anos
pai
achega
2801a27041
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      ServerFiles/Categories.php

+ 1 - 2
ServerFiles/Categories.php

@@ -23,6 +23,5 @@ $sth->setFetchMode(PDO::FETCH_ASSOC);
 
 $result = $sth->fetchAll();
 if (count($result) > 0) {
-    $json =  json_encode($result, JSON_UNESCAPED_UNICODE);
-    echo "{\"items\":" . $json . "}";
+    echo json_encode($result, JSON_UNESCAPED_UNICODE);
 }