check file exists
authorAlan <alan@roojs.com>
Thu, 28 Apr 2022 05:36:35 +0000 (13:36 +0800)
committerAlan <alan@roojs.com>
Thu, 28 Apr 2022 05:36:35 +0000 (13:36 +0800)
File/Convert/Solution/scaleimage.php

index 37c42b5..ec5bb7b 100644 (file)
@@ -22,10 +22,10 @@ class File_Convert_Solution_scaleimage extends File_Convert_Solution
      
     function convert($fn,$x,$y,$pg) 
     {
-       
         
         //  print_r(array('scaleimage', func_get_args()));
-        if (empty($x) && empty($y)) {
+        clearstatcache();
+        if (!file_exists($fn) || (empty($x) && empty($y))) {
             return false;
         }
         $ext = $this->ext;