Fixing #1497 and expanding get_input to handle floats and booleans autom...

...atically.
Is_int checks for an actual integer, so we can't use that. 

As for typecasting to string, we could do but input will already be a string anyway. 

> On 9 Oct 2014, at 07:27, Omar Gonzalez <notifications@github.com> wrote:
> 
> In inc/class_core.php:
> 
> >  	{
> >  		switch($type)
> >  		{
> > -			case 2:
> > +			case MyBB::INPUT_ARRAY:
> >  				if(!isset($this->input[$name]) || !is_array($this->input[$name]))
> >  				{
> >  					return array();
> >  				}
> >  				return $this->input[$name];
> Why not using (string) here? We do use (int) even if is_numeric is true... which BTW should probably be is_int... PHP is too confusing..
> 
> —
> Reply to this email directly or view it on GitHub.