From 8f6d305abf2def3827bf15d31bac002ccc4fd0f5 Mon Sep 17 00:00:00 2001 From: Alexander O'Neill Date: Fri, 14 Jan 2011 15:00:53 -0400 Subject: [PATCH] Minor warning from purgeObject form. --- fedora_repository.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;