diff --git a/includes/ingest.form.inc b/includes/ingest.form.inc index e14fd4e9..f3cde3e5 100644 --- a/includes/ingest.form.inc +++ b/includes/ingest.form.inc @@ -927,11 +927,13 @@ function islandora_ingest_form_get_steps(array &$form_state) { function islandora_form_islandora_ingest_form_alter(&$form, &$form_state) { foreach ($form_state['islandora']['shared_storage']['models'] as $key => $cmodel) { $fedora_cmodel = islandora_object_load($cmodel); - $cmodel_label = $fedora_cmodel->{'label'}; - $form["contact_information_$key"] = array( - '#markup' => "

$cmodel_label


", - '#weight' => -1000, - ); + if ($fedora_cmodel) { + $form["contact_information_$key"] = array( + '#markup' => "

$fedora_cmodel->label


", + '#weight' => -1000, + ); + } + } }