From f5b895fc348d0ad3ec2bdb75d4ec700ce12287d6 Mon Sep 17 00:00:00 2001 From: jerome Date: Tue, 30 Nov 2021 14:26:31 +0100 Subject: [PATCH] api fix --- api/api_connexions.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/api/api_connexions.php b/api/api_connexions.php index 2902634..99fe773 100644 --- a/api/api_connexions.php +++ b/api/api_connexions.php @@ -1,17 +1,13 @@ $conn) { - $conn["machine"] = $machine; // ajout d'un champ dans le hash $conn - array_push($tableau_connexions, $conn); -} +$connexions = Connexions(); -$json_connexions = json_encode($tableau_connexions); +$json_connexions = json_encode($connexions); echo($json_connexions); - ?> \ No newline at end of file