diff --git a/ObjectHelper.inc b/ObjectHelper.inc index 9b24f088..99fd719c 100644 --- a/ObjectHelper.inc +++ b/ObjectHelper.inc @@ -1017,7 +1017,8 @@ class ObjectHelper { $matches =str_getcsv(join("\n",$result)); if ($matches !== NULL) { $parent = preg_replace('/^info:fedora\//','',$matches[0]); - $breadcrumbs[] = l($matches[1], 'fedora/repository/' . $pid); + $text = isset($matches[1]) ? $matches[1] : ''; + $breadcrumbs[] = l($text, 'fedora/repository/' . $pid); if ($parent == variable_get('fedora_repository_pid', 'islandora:top')) { $breadcrumbs[] = l(t('Home'), ''); // l(t('Digital repository'), 'fedora/repository'); } elseif ($level > 0) {