[ticket/13022] "Return to advanced search" wrong assumption 

[PHPBB3-13022](https://tracker.phpbb.com/browse/PHPBB3-13022)
Just `strpos($user->referer, "search.$phpEx") !== false` please.