joomla/joomla-platform — pull request #1095 by Buddhima (2012-04-01 08:42:00+00:00)
Title: Avoid division by zero (for issue #708)

File: libraries/joomla/image/image.php
Method: prepareDimensions()

Issue: If zero is given for the one of the arguments $height or $width, following section will produce an error.
Solution: Treat 3 instances where $height=0,$width=0 and both not equals zero

Signed-off-by: Buddhima Wijeweera