diff --git a/fedora_repository.module b/fedora_repository.module index cbc1308c..c67ca207 100644 --- a/fedora_repository.module +++ b/fedora_repository.module @@ -257,7 +257,7 @@ function fedora_repository_purge_object_form(&$form_state, $pid, $referrer) { '#value' => t('Purge'), '#suffix' => 'Purge this object', ); - if ($collectionPid == NULL) { + if (!empty($collectionPid)) { $collectionPid = $_SESSION['fedora_collection']; } //$form['#redirect'] = $referrer;