Index: content_profile.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/content_profile/Attic/content_profile.module,v
retrieving revision 1.1.2.47
diff -u -p -r1.1.2.47 content_profile.module
--- content_profile.module	13 Jan 2010 10:38:26 -0000	1.1.2.47
+++ content_profile.module	26 Mar 2010 11:01:50 -0000
@@ -70,18 +70,19 @@ function content_profile_menu() {
 function content_profile_menu_alter(&$items) {
   foreach (content_profile_get_types('names', 'edit_tab', 'sub') as $type => $type_name) {
     $item = &$items['user/%user_category/edit/'. $type];
-    $item = array(
-      'page callback' => 'content_profile_page_edit',
-      'page arguments' => array($type, 1),
-      'access callback' => 'content_profile_page_access',
-      'access arguments' => array($type, 1),
-      'file' => 'node.pages.inc',
-      'file path' => drupal_get_path('module', 'node'),
-    ) + $item;
+    if (is_array($item)) {
+      $item = array(
+        'page callback' => 'content_profile_page_edit',
+        'page arguments' => array($type, 1),
+        'access callback' => 'content_profile_page_access',
+        'access arguments' => array($type, 1),
+        'file' => 'node.pages.inc',
+        'file path' => drupal_get_path('module', 'node'),
+      ) + $item;
+    }
   }
 }
 
-
 function content_profile_page_access($type, $account) {
   if ($node = content_profile_load($type, $account->uid)) {
     return node_access('update', $node);
