Browse Source

Added validity check

pull/240/head
Alan Stanley 12 years ago
parent
commit
7057c12b76
  1. 4
      fedora_repository.module

4
fedora_repository.module

@ -1832,7 +1832,11 @@ function islandora_fedora_settings_form_submit($form, &$form_state) {
}
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 ()){
return;
}
$item = new Fedora_Item($pid);
if ($item->exists()) {
return;

Loading…
Cancel
Save