change scheduling php

Changed that it doesn't check if user searches nothing; if user presses
search without anything, it should return everything