From 68a9b184f7e0abd5feb68bd52d10dd8da9587280 Mon Sep 17 00:00:00 2001 From: Cedric Date: Thu, 25 Jun 2026 12:47:56 +0200 Subject: [PATCH] Actualiser api.php --- api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.php b/api.php index 19cc9bd..98062e4 100644 --- a/api.php +++ b/api.php @@ -336,7 +336,7 @@ switch ($action) { $result = $pdo->query($sql)->fetchAll(); // Formatage des notes : suppression du .0 pour les comptes ronds - foreach ($result as &$row) { + foreach ($result as $row) { if ($row['rating'] !== null) { $ratingVal = (float)$row['rating']; $row['rating'] = ($ratingVal == floor($ratingVal)) ? (int)$ratingVal : $ratingVal;