Avoid warning when removing plugin zip archive

This commit is contained in:
Frédéric Guillot 2021-04-04 14:24:09 -07:00 committed by fguillot
parent a66c357f4e
commit b08760c5fc
1 changed files with 2 additions and 1 deletions

View File

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