diff options
author | Andreas Gohr <gohr@cosmocode.de> | 2011-12-13 15:18:29 +0100 |
---|---|---|
committer | Andreas Gohr <gohr@cosmocode.de> | 2011-12-13 15:18:29 +0100 |
commit | 2e0ce43774bc165c88e07cd1eab502a22ebfa2ae (patch) | |
tree | 046b0328caf84e7a48fba21f06e506aa367451d9 | |
parent | 6201c7a865b1007b6a0e2a221b1c6fcdc738b772 (diff) | |
download | rpg-2e0ce43774bc165c88e07cd1eab502a22ebfa2ae.tar.gz rpg-2e0ce43774bc165c88e07cd1eab502a22ebfa2ae.tar.bz2 |
Avoid a warning when a media cachefile doesn't exist yet
-rw-r--r-- | inc/media.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/media.php b/inc/media.php index e71bfd236..93692a7c6 100644 --- a/inc/media.php +++ b/inc/media.php @@ -1778,7 +1778,7 @@ function media_crop_image($file, $ext, $w, $h=0){ $local = getCacheName($file,'.media.'.$cw.'x'.$ch.'.crop.'.$ext); $mtime = @filemtime($local); // 0 if not exists - if( $mtime > filemtime($file) || + if( $mtime > @filemtime($file) || media_crop_imageIM($ext,$file,$info[0],$info[1],$local,$cw,$ch,$cx,$cy) || media_resize_imageGD($ext,$file,$cw,$ch,$local,$cw,$ch,$cx,$cy) ){ if($conf['fperm']) chmod($local, $conf['fperm']); |