Check get variables in query.php

Sports and days arrays are checked whether they are arrays and they contain
elements.