Browse Source

yet another validity check

pull/653/head
ajstanley 8 years ago
parent
commit
37c7fcd9d0
  1. 4
      islandora.module

4
islandora.module

@ -2181,7 +2181,9 @@ function islandora_islandora_overview_object(AbstractObject $object) {
foreach ($cmodels as $cmodel) {
if ($cmodel != 'fedora-system:FedoraObject-3.0') {
$o = islandora_object_load($cmodel);
$rows[] = array(l($o->label, "islandora/object/{$o->id}"));
if(is_object($o)) {
$rows[] = array(l($o->label, "islandora/object/{$o->id}"));
}
}
}
$header = count($rows) > 1 ? t('Content Models') : t('Content Model');

Loading…
Cancel
Save