From 407ee5ed242156f637382317060c19dd606590b9 Mon Sep 17 00:00:00 2001 From: Anael MOBILIA Date: Tue, 8 Oct 2024 02:33:42 +0200 Subject: [PATCH] aaaaaaaaaaaa --- classes/MiniatureObject.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/MiniatureObject.class.php b/classes/MiniatureObject.class.php index dad64f3..09045f7 100644 --- a/classes/MiniatureObject.class.php +++ b/classes/MiniatureObject.class.php @@ -124,8 +124,8 @@ public function supprimer(): void // Si plus aucune image n'utilise le fichier => supprimer l'image sur le HDD if ( $req->execute() - //&& $this->getNbUsages() === 0 - && file_exists($this->getPathMd5()) + && $this->getNbUsages() === 0 + //&& file_exists($this->getPathMd5()) ) { unlink($this->getPathMd5()); }