diff --git a/contrib/res_limit/main.php b/contrib/res_limit/main.php index 2ae9b65b..75c0d53c 100644 --- a/contrib/res_limit/main.php +++ b/contrib/res_limit/main.php @@ -18,9 +18,9 @@ class ResolutionLimit extends Extension { $image = $event->image; if($min_w > 0 && $image->width < $min_w) $event->veto("Image too small"); - if($min_h > 0 && $image->height < $min_w) $event->veto("Image too small"); + if($min_h > 0 && $image->height < $min_h) $event->veto("Image too small"); if($max_w > 0 && $image->width > $min_w) $event->veto("Image too large"); - if($max_h > 0 && $image->height > $min_w) $event->veto("Image too large"); + if($max_h > 0 && $image->height > $min_h) $event->veto("Image too large"); } if(is_a($event, 'SetupBuildingEvent')) { $sb = new SetupBlock("Resolution Limits");