#159475 by paddy_deburca: maxheight is never defined, height should be used

6.x
Gábor Hojtsy 2007-07-25 17:41:27 +00:00
parent 6ea74bfe47
commit c5e2159503
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}
}