Integer values from request

Changed to $jinput->getInt to cast type to integer. This should be enough to fix the problem described in the forum.
Not very well tested!