From 3cdedccdeb01642d59ebe60dc0390d50f1080878 Mon Sep 17 00:00:00 2001 From: Nigel Banks Date: Sun, 13 Feb 2011 13:43:20 -0400 Subject: [PATCH] ISLANDORA-192: Checked to see if [1], is set before using it. --- ObjectHelper.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {