From 54140f84fff0c1cda12b940b2e4ad7c54810cf94 Mon Sep 17 00:00:00 2001 From: Nigel Banks Date: Tue, 20 Sep 2011 01:04:06 +0100 Subject: [PATCH] ISLANDORA-350: When viewing non-existing objects the Drupal not found page renders along with a failed attempt at rendering the missing object. --- fedora_repository.module | 1 + 1 file changed, 1 insertion(+) diff --git a/fedora_repository.module b/fedora_repository.module index 894e91e3..cc285122 100644 --- a/fedora_repository.module +++ b/fedora_repository.module @@ -914,6 +914,7 @@ function fedora_repository_get_items($pid = NULL, $dsId = NULL, $collection = NU $item = new fedora_item($pid); if (!$item->exists()) { drupal_not_found(); + exit(); } if ($pid & !valid_pid($pid)) {