From 5a48a697df42d37c6d9ecd123280470858f47ec3 Mon Sep 17 00:00:00 2001 From: A511701 Date: Wed, 7 Jun 2017 15:55:31 +0200 Subject: [PATCH] * Correction de messages d'erreur dans les logs en cas de suppression de piece jointe inexistante --- application/controllers/PieceJointeController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/PieceJointeController.php b/application/controllers/PieceJointeController.php index 7d4d82e8..a577a313 100755 --- a/application/controllers/PieceJointeController.php +++ b/application/controllers/PieceJointeController.php @@ -281,7 +281,7 @@ public function deleteAction() } // On supprime dans la BDD et physiquement - if ($DBitem != null) { + if ($pj != null && $DBitem != null) { $file_path = $this->store->getFilePath($pj, $this->_request->type, $this->_request->id); $miniature_pj = $pj;