? .DS_Store
? 286634_missing_php-7.patch
Index: translation_overview.pages.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/translation_overview/translation_overview.pages.inc,v
retrieving revision 1.4
diff -u -p -r1.4 translation_overview.pages.inc
--- translation_overview.pages.inc	11 Sep 2008 23:26:26 -0000	1.4
+++ translation_overview.pages.inc	11 Sep 2008 23:48:14 -0000
@@ -323,6 +323,12 @@ function translation_overview_manager_pa
     }
   }
 
+  // Bail if there are no translatable nodes
+  if (count(translation_overview_node_types()) == 0) {
+    drupal_set_message(t('There are no translateable node types on this site.'), 'error');
+    return '';
+  }
+
   $header = array(
     array('field' => 'n.title', 'data' => t('Title'), 'sort' => 'asc'),
     array('field' => 'n.type', 'data' => t('Type')),
@@ -386,6 +392,12 @@ function translation_overview_assignment
   $node_types = node_get_types('names');
   $languages = language_list();
 
+  // Bail if there are no translatable nodes
+  if (count(translation_overview_node_types()) == 0) {
+     drupal_set_message(t('There are no translateable node types on this site.'), 'error');
+     return '';
+  }
+
   $header = array(
     array('field' => 'n.title', 'data' => t('Title')),
     array('field' => 'translation_status', 'data' => t('Status'), 'sort' => 'desc'),
