Index: apachesolr_search.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/apachesolr/apachesolr_search.module,v
retrieving revision 1.1.2.6.2.88
diff -u -p -r1.1.2.6.2.88 apachesolr_search.module
--- apachesolr_search.module	30 Apr 2009 17:38:41 -0000	1.1.2.6.2.88
+++ apachesolr_search.module	4 May 2009 16:47:39 -0000
@@ -574,12 +574,10 @@ function apachesolr_search_get_book($fac
  * Callback function for the 'Filter by name' facet block.
  */
 function apachesolr_search_get_username($facet) {
-  if ($facet == 0) {
-    return variable_get('anonymous', t('Anonymous'));
-  }
-  else {
-    return db_result(db_query("SELECT name FROM {users} WHERE uid = %d", $facet));
+  if (is_numeric($facet)) {
+    return theme('apachesolr_breadcrumb_uid', $facet);
   }
+  return '';
 }
 
 /**
@@ -714,7 +712,12 @@ function theme_apachesolr_breadcrumb_cre
  * Return the username from $uid
  */
 function theme_apachesolr_breadcrumb_uid($uid) {
-  return apachesolr_search_get_username($uid);
+  if ($uid == 0) {
+    return variable_get('anonymous', t('Anonymous'));
+  }
+  else {
+    return db_result(db_query("SELECT name FROM {users} WHERE uid = %d", $uid));
+  }
 }
 
 /**
