Index: apachesolr_search.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/apachesolr/apachesolr_search.module,v
retrieving revision 1.1.2.6.2.63
diff -u -p -r1.1.2.6.2.63 apachesolr_search.module
--- apachesolr_search.module	27 Jan 2009 21:32:34 -0000	1.1.2.6.2.63
+++ apachesolr_search.module	2 Feb 2009 01:32:48 -0000
@@ -207,7 +207,7 @@ function apachesolr_search_search($op = 
             $extra['score'] = $doc->score;
             $results[] = array(
               'link' => $doc->url,
-              'type' => node_get_types('name', $doc),
+              'type' => apachesolr_search_get_type($doc->type),
               'title' => $doc->title,
               'user' => theme('username', $doc),
               'date' => $doc->created,
@@ -448,7 +448,9 @@ function apachesolr_search_get_username(
  * Callback function for the 'Filter by type' facet block.
  */
 function apachesolr_search_get_type($facet) {
-  return node_get_types('name', $facet);
+  $type = node_get_types('name', $facet);
+  // A disabled or missing node type return FALSE.
+  return ($type === FALSE) ? $facet : $type;
 }
 
 /**
