diff --git a/e107_handlers/e_parse_class.php b/e107_handlers/e_parse_class.php index 1fc8d9963..bd650d7c3 100644 --- a/e107_handlers/e_parse_class.php +++ b/e107_handlers/e_parse_class.php @@ -1968,7 +1968,7 @@ class e_parse extends e_parser */ public function thumbWidth($width=null) { - if($val !== null) + if($height !== null) { $this->thumbWidth = intval($width); } @@ -1986,7 +1986,7 @@ class e_parse extends e_parser */ public function thumbHeight($height= null) { - if($val !== null) + if($height !== null) { $this->thumbHeight = intval($height); }