diff --git a/html/editpage.php b/html/editpage.php index c26c2a8b..9c4e37c3 100644 --- a/html/editpage.php +++ b/html/editpage.php @@ -124,10 +124,9 @@ if(isset($fichier)) { $req->execute(); $resultat = $req->fetchAll(PDO::FETCH_ASSOC); - $date = strtotime($row['date']); - if ($resultat) { foreach($resultat as $row) { + $date = strtotime($row['date']); echo "