From 1471f64ea6fcd8f69d4cea0f91e11043bf68cc34 Mon Sep 17 00:00:00 2001 From: Alan Stanley Date: Tue, 22 Jan 2013 14:24:45 -0400 Subject: [PATCH] fixed error message --- fedora_repository.module | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fedora_repository.module b/fedora_repository.module index 799e1e10..8820b4a0 100644 --- a/fedora_repository.module +++ b/fedora_repository.module @@ -1835,11 +1835,12 @@ function islandora_guarantee_root_collection($pid) { module_load_include('inc', 'fedora_repository', 'api/fedora_utils'); module_load_include('inc', 'fedora_repository', 'api/fedora_item'); if(!fedora_available ()){ + drupal_set_message(t('Fedora is not available')); return; } $item = new Fedora_Item($pid); if ($item->exists()) { - drupal_set_message(t('Fedora is not available')); + return; } $item = Fedora_item::ingest_new_item($pid, 'A', 'Islandora Root Collection', 'admin');