Index: image_helper.php =================================================================== --- image_helper.php (revision 13241) +++ image_helper.php (working copy) @@ -62,13 +62,13 @@ * @param mixed $max_height maximal allowed resized image height or false if no limit * @return string direct url to resized image */ - function ResizeImage($src_image, $max_width, $max_height = null) + function ResizeImage($src_image, $max_width, $max_height = false) { $image_size = false; - if(isset($max_height)) { + if (is_numeric($max_width)) { + $params['max_width'] = $max_width; $params['max_height'] = $max_height; - $params['max_width'] = $max_width; } else { $params = $this->parseFormat($max_width);