diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-07-25 17:41:27 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-07-25 17:41:27 +0000 |
commit | c5e2159503d3b277700327ff8b62208311d2aa01 (patch) | |
tree | ae61d1dfc3b0ea26834dd80414f83649199ea0ac /includes | |
parent | 6ea74bfe476b56a1831ba7c1ec3ac870cbf89348 (diff) | |
download | brdo-c5e2159503d3b277700327ff8b62208311d2aa01.tar.gz brdo-c5e2159503d3b277700327ff8b62208311d2aa01.tar.bz2 |
#159475 by paddy_deburca: maxheight is never defined, height should be used
Diffstat (limited to 'includes')
-rw-r--r-- | includes/file.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/file.inc b/includes/file.inc index eec106f0f..c0fe727e1 100644 --- a/includes/file.inc +++ b/includes/file.inc @@ -725,7 +725,7 @@ function file_validate_image_resolution(&$file, $maximum_dimensions = 0, $minimu if ($minimum_dimensions) { // Check that it is larger than the given dimensions. list($width, $height) = explode('x', $minimum_dimensions); - if ($info['width'] < $width || $info['height'] < $maxheight) { + if ($info['width'] < $width || $info['height'] < $height) { $errors[] = t('The image is too small; the minimum dimensions are %dimensions pixels.', array('%dimensions' => $minimum_dimensions)); } } |