[ticket/11010] displaying min and max only if they are set

PHPBB3-11010
[ticket/11010] validation to match type

PHPBB3-11010