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); } }