From 37c7fcd9d00aeb07ab70b3c63c237cee70193bda Mon Sep 17 00:00:00 2001 From: ajstanley Date: Fri, 29 Jul 2016 12:42:41 -0300 Subject: [PATCH] yet another validity check --- islandora.module | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/islandora.module b/islandora.module index f497c271..809b0d61 100644 --- a/islandora.module +++ b/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');