From dc220b21f7a534aacead1289f1441fc2ff86cdd7 Mon Sep 17 00:00:00 2001 From: Christian Haschek Date: Sun, 15 May 2022 18:54:43 +0200 Subject: [PATCH] forgot to return the success state of the deletion --- web/inc/core.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/inc/core.php b/web/inc/core.php index 81a4600..134e921 100644 --- a/web/inc/core.php +++ b/web/inc/core.php @@ -124,7 +124,7 @@ function deleteEmail($email,$id) $attachments = listAttachmentsOfMailID($email,$id); foreach($attachments as $attachment) unlink($dir.DS.'attachments'.DS.$attachment); - unlink($dir.DS.$id.'.json'); + return unlink($dir.DS.$id.'.json'); }