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:18:05 -0000
@@ -205,9 +205,14 @@ function apachesolr_search_search($op = 
             $doc->changed = strtotime($doc->changed);
             $extra += node_invoke_nodeapi($doc, 'search result');
             $extra['score'] = $doc->score;
+            $type = node_get_types('name', $doc);
+            if ($type === FALSE) {
+              // A disabled or missing node type.
+              $type = $doc->type;
+            }
             $results[] = array(
               'link' => $doc->url,
-              'type' => node_get_types('name', $doc),
+              'type' => $type,
               'title' => $doc->title,
               'user' => theme('username', $doc),
               'date' => $doc->created,
