Index: bp-core-templatetags.php
===================================================================
--- bp-core-templatetags.php	(revision 2980)
+++ bp-core-templatetags.php	(working copy)
@@ -987,6 +987,8 @@
 }
 
 function bp_search_form_type_select() {
+	global $bp;
+	
 	// Eventually this won't be needed and a page will be built to integrate all search results.
 	$selection_box = '<select name="search-which" id="search-which" style="width: auto">';
 
