From: Alan Knowles Date: Wed, 15 Apr 2020 03:55:44 +0000 (+0800) Subject: check before deleting temp files X-Git-Url: http://git.roojs.org/?p=Pman.Base;a=commitdiff_plain;h=7d79f71ca58f1c7c3a4d404c0a75280e144f1d8c check before deleting temp files --- diff --git a/Pman.php b/Pman.php index a999995..e421451 100644 --- a/Pman.php +++ b/Pman.php @@ -400,7 +400,9 @@ class Pman extends HTML_FlexyFramework_Page { foreach(self::$deleteOnExit as $fn) { - unlink($fn); + if (file_exists($fn)) { + unlink($fn); + } } }