? profiletabs_zero.patch
Index: profiletabs.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/profiletabs/profiletabs.module,v
retrieving revision 1.2
diff -u -p -r1.2 profiletabs.module
--- profiletabs.module	8 Apr 2008 14:49:21 -0000	1.2
+++ profiletabs.module	14 Apr 2008 07:18:04 -0000
@@ -34,7 +34,7 @@ function profiletabs_menu($may_cache) {
       if ($account !== FALSE) {
         // Make tabs for all non-hidden categories
         foreach ($categories as $key => $category) {
-          if (empty($hidden[$key])) {
+          if (empty($hidden[$key]) && !empty($category)) {
             $items[] = array(
               'path' => 'user/'. arg(1) .'/view/'. $key,
               'title' => $key,
@@ -58,7 +58,9 @@ function profiletabs_admin_settings() {
   // Get categories
   $categories = module_invoke_all('user', 'view', '', $user);
   foreach ($categories as $key => $category) {
-    $options[$key] = $key;
+    if (!empty($category)) {
+      $options[$key] = $key;
+    }
   }
 
   $form['profiletabs_default'] = array(
