From 35aa418c020997700d5712802d8dc72ede80c9b1 Mon Sep 17 00:00:00 2001 From: Nigel Banks Date: Tue, 20 Sep 2011 11:34:54 +0100 Subject: [PATCH] ISLANDORA-355: Undefined variable error when adding to the pdf collection --- CollectionClass.inc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CollectionClass.inc b/CollectionClass.inc index e6d2fbf2..7013e77d 100644 --- a/CollectionClass.inc +++ b/CollectionClass.inc @@ -514,9 +514,7 @@ class CollectionClass { // Check the form post to see if we are in the middle of an ingest operation. $show_ingest_tab = (!empty($_POST['form_id']) && $_POST['form_id'] == 'fedora_repository_ingest_form'); $add_to_collection = $this->getIngestInterface(); - if (!$show_ingest_tab) { - $view_selected = true; - } + $view_selected = !$show_ingest_tab; drupal_set_message();