summaryrefslogtreecommitdiff
path: root/lib/exe
diff options
context:
space:
mode:
authorlisps <stummp@loewen.de>2013-11-27 09:38:06 +0100
committerlisps <stummp@loewen.de>2013-11-27 09:38:06 +0100
commit77450f4001bc641f7a724ae5e5c2f71b44c022d1 (patch)
tree4ab3e24204ffaa92bebd343bd9a70ce5121bbc67 /lib/exe
parent14b3007921f7b66fc9e3621b861a3c83e7e9093c (diff)
downloadrpg-77450f4001bc641f7a724ae5e5c2f71b44c022d1.tar.gz
rpg-77450f4001bc641f7a724ae5e5c2f71b44c022d1.tar.bz2
media image can be resized by height (without width)
Diffstat (limited to 'lib/exe')
-rw-r--r--lib/exe/fetch.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/exe/fetch.php b/lib/exe/fetch.php
index 5967494bf..f33b3f2f8 100644
--- a/lib/exe/fetch.php
+++ b/lib/exe/fetch.php
@@ -78,8 +78,8 @@ if (defined('SIMPLE_TEST')) {
unset($evt);
//handle image resizing/cropping
- if((substr($MIME, 0, 5) == 'image') && $WIDTH) {
- if($HEIGHT) {
+ if((substr($MIME, 0, 5) == 'image') && ($WIDTH || $HEIGHT)) {
+ if($HEIGHT && $WDITH) {
$data['file'] = $FILE = media_crop_image($data['file'], $EXT, $WIDTH, $HEIGHT);
} else {
$data['file'] = $FILE = media_resize_image($data['file'], $EXT, $WIDTH, $HEIGHT);