Browse Source

ISLANDORA-192: Checked to see if [1], is set before using it.

pull/105/head
Nigel Banks 14 years ago
parent
commit
3cdedccdeb
  1. 3
      ObjectHelper.inc

3
ObjectHelper.inc

@ -1017,7 +1017,8 @@ class ObjectHelper {
$matches =str_getcsv(join("\n",$result)); $matches =str_getcsv(join("\n",$result));
if ($matches !== NULL) { if ($matches !== NULL) {
$parent = preg_replace('/^info:fedora\//','',$matches[0]); $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')) { if ($parent == variable_get('fedora_repository_pid', 'islandora:top')) {
$breadcrumbs[] = l(t('Home'), ''); // l(t('Digital repository'), 'fedora/repository'); $breadcrumbs[] = l(t('Home'), ''); // l(t('Digital repository'), 'fedora/repository');
} elseif ($level > 0) { } elseif ($level > 0) {

Loading…
Cancel
Save