From c5e2159503d3b277700327ff8b62208311d2aa01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Wed, 25 Jul 2007 17:41:27 +0000 Subject: #159475 by paddy_deburca: maxheight is never defined, height should be used --- includes/file.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } } -- cgit v1.2.3