Fixed the favorite php so that it will redirect