From b08760c5fc97c88e637c0fd4c0fdda6c797d5fc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Guillot?= Date: Sun, 4 Apr 2021 14:24:09 -0700 Subject: [PATCH] Avoid warning when removing plugin zip archive --- app/Core/Plugin/Installer.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Core/Plugin/Installer.php b/app/Core/Plugin/Installer.php index 057ded940..e7eb8f4ac 100644 --- a/app/Core/Plugin/Installer.php +++ b/app/Core/Plugin/Installer.php @@ -133,7 +133,8 @@ class Installer extends \Kanboard\Core\Base */ protected function cleanupArchive(ZipArchive $zip) { - unlink($zip->filename); + $filename = $zip->filename; $zip->close(); + unlink($filename); } }