projects
/
pear
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd58743
)
check file exists
author
Alan
<alan@roojs.com>
Thu, 28 Apr 2022 05:36:35 +0000
(13:36 +0800)
committer
Alan
<alan@roojs.com>
Thu, 28 Apr 2022 05:36:35 +0000
(13:36 +0800)
File/Convert/Solution/scaleimage.php
patch
|
blob
|
history
diff --git
a/File/Convert/Solution/scaleimage.php
b/File/Convert/Solution/scaleimage.php
index
37c42b5
..
ec5bb7b
100644
(file)
--- a/
File/Convert/Solution/scaleimage.php
+++ b/
File/Convert/Solution/scaleimage.php
@@
-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;