15/06/2012 11:39am

PHP | Problem -


    public function resizeForGallery ()

{
$img = $this->SetHeight (200);
if ($img->Width > 370)
$img->SetWidth (370);
return $img;
}


1 Comments 1 Solutions

15/06/2012 11:43am

PHP | Solution - Anonymous

Pretty simple mistake :P

public function resizeForGallery ()
{
$img = $this->SetHeight (200);
if ($img->Width > 370)
$img = $img->SetWidth (370);
return $img;
}

Post Comment