fix warning

This commit is contained in:
Ralf Becker 2015-03-19 10:52:34 +00:00
parent 028ab9644b
commit 35f6de7f2a

View File

@ -225,7 +225,7 @@ function gen_dstfile($src, $maxsize, $height=null, $width=null, $minsize=null)
* TODO: As this is a general purpose function, it might probably be moved
* to some other php file or an "image utils" class.
*/
function get_scaled_image_size($w, $h, $maxw, $maxh, $minw, $minh)
function get_scaled_image_size($w, $h, $maxw, $maxh, $minw=0, $minh=0)
{
//Scale will contain the factor by which the image has to be scaled down
$scale = 1.0;