From ae64d3e26040c8550f5db4b78ec415ebf9b69435 Mon Sep 17 00:00:00 2001 From: nruest Date: Tue, 27 Jan 2015 10:24:18 -0500 Subject: [PATCH] Actually remove the ternary. --- includes/ingest.form.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/ingest.form.inc b/includes/ingest.form.inc index 7f355148..530c05c9 100644 --- a/includes/ingest.form.inc +++ b/includes/ingest.form.inc @@ -80,7 +80,10 @@ function islandora_ingest_form(array $form, array &$form_state, array $configura */ function islandora_ingest_form_init_form_state_storage(array &$form_state, array $configuration) { if (empty($form_state['islandora'])) { - $objects = isset($configuration['objects']) : array(); + $objects = isset($configuration['objects']); + if (empty($objects)) { + $objects[] = islandora_ingest_form_prepare_new_object($configuration); + } $configuration['models'] = isset($configuration['models']) ? $configuration['models'] : array(); // Make sure the models actually exist. foreach ($configuration['models'] as $key => $model) {