Bug 5453: Move declarations from within conditionals in catalogue/search.pl