Removed unused global variables from search.php