From fdef77d4a8817b6e8940951f3301ad94bde0e6c6 Mon Sep 17 00:00:00 2001 From: polo Date: Mon, 5 Jun 2023 14:51:09 +0200 Subject: suppression de $_SESSION['file_code'] --- model/Album.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'model/Album.php') diff --git a/model/Album.php b/model/Album.php index 801afef..1954800 100644 --- a/model/Album.php +++ b/model/Album.php @@ -160,7 +160,7 @@ class Album extends Article $albumJSON = json_encode([$titre, $annee, $pochette, $pochetteMini]); // écriture - $nom_fichier = 'data/discographie/json/' . $this->albumCode . '.json'; + $nom_fichier = 'data/discographie/json/' . $this->fileCode . '.json'; $fichier = fopen($nom_fichier, 'w+'); // w pour créer ou écraser fputs($fichier, $albumJSON); fclose($fichier); -- cgit v1.2.3