Pman.php
authorAlan Knowles <alan@roojs.com>
Thu, 15 Aug 2019 06:01:03 +0000 (14:01 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 15 Aug 2019 06:01:03 +0000 (14:01 +0800)
Pman.php

index 9396dd5..7b22f0b 100644 (file)
--- a/Pman.php
+++ b/Pman.php
@@ -381,7 +381,7 @@ class Pman extends HTML_FlexyFramework_Page
     
     function tempName($ext, $deleteOnExit=false)
     {
-        if (self::$deleteOnExit === false) {
+        if ($deleteOnExit && self::$deleteOnExit === false) {
             register_shutdown_function(array($this,'deleteOnExit'));
             self::$deleteOnExit  = array();
         }