Index: taxonomy.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/taxonomy.module,v
retrieving revision 1.139
diff -u -r1.139 taxonomy.module
--- taxonomy.module	21 Aug 2004 06:42:37 -0000	1.139
+++ taxonomy.module	23 Aug 2004 04:13:16 -0000
@@ -805,11 +805,15 @@
  * taxonomy_select_nodes(), and formats each node along with a pager.
 */
 function taxonomy_render_nodes($result) {
-
-  while ($node = db_fetch_object($result)) {
-    $output .= node_view(node_load(array('nid' => $node->nid)), 1);
+  if(db_num_rows($result) > 0) {
+    while ($node = db_fetch_object($result)) {
+      $output .= node_view(node_load(array('nid' => $node->nid)), 1);
+    }
+    $output .= theme('pager', NULL, variable_get('default_nodes_main', 10), 0);
+  }
+  else {
+    $output .= t('There are currently no posts in this category.');
   }
-  $output .= theme('pager', NULL, variable_get('default_nodes_main', 10), 0);
   return $output;
 }
 
