diff --git a/islandora_compound_object.module b/islandora_compound_object.module index eb7f2e2..90b2106 100644 --- a/islandora_compound_object.module +++ b/islandora_compound_object.module @@ -739,7 +739,7 @@ function islandora_compound_object_retrieve_compound_info(AbstractObject $object $next_pid = (isset($siblings[$current_key + 1])) ? $siblings[$current_key + 1] : ''; // Check if perms to show link for parent manage. - if (islandora_object_manage_access_callback(array( + if ($parent && islandora_object_manage_access_callback(array( ISLANDORA_METADATA_EDIT, ISLANDORA_MANAGE_PROPERTIES, ISLANDORA_ADD_DS), $parent)) { $parent_url = 'islandora/object/' . $parent_pid . '/manage'; } @@ -748,7 +748,7 @@ function islandora_compound_object_retrieve_compound_info(AbstractObject $object } $info = array( - 'parent_label' => $parent->label, + 'parent_label' => ($parent && $parent->label) ? $parent->label : NULL, 'parent_pid' => $parent_pid, 'parent_url' => $parent_url, 'previous_pid' => $previous_pid,