BUG - fix error when HTTP_USER_AGENT isn't set

git-svn-id: http://svn.montala.net/svn/resourcespace@4882 c08608d7-6e46-0410-86ca-f2a6f1370df5
BUG - conflicting k variable in advanced search

git-svn-id: http://svn.montala.net/svn/resourcespace@4883 c08608d7-6e46-0410-86ca-f2a6f1370df5