diff --git src/bp-core/bp-core-functions.php src/bp-core/bp-core-functions.php
index 5286ec234..24cd63dff 100644
--- src/bp-core/bp-core-functions.php
+++ src/bp-core/bp-core-functions.php
@@ -3400,7 +3400,7 @@ function bp_get_taxonomy_types( $taxonomy = '', $types = array() ) {
 		return $types;
 	}
 
-	$db_types = (array) wp_cache_get( $taxonomy, 'bp_object_terms' );
+	$db_types = wp_cache_get( $taxonomy, 'bp_object_terms' );
 
 	if ( ! $db_types ) {
 		$terms = bp_get_terms(
@@ -3413,6 +3413,7 @@ function bp_get_taxonomy_types( $taxonomy = '', $types = array() ) {
 			return $types;
 		}
 
+		$db_types      = array();
 		$type_metadata = array_keys( get_registered_meta_keys( 'term', $taxonomy ) );
 
 		foreach ( $terms as $term ) {
