aboutsummaryrefslogtreecommitdiffstats
path: root/picture.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--picture.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/picture.php b/picture.php
index 486e303cb..ed143723f 100644
--- a/picture.php
+++ b/picture.php
@@ -42,7 +42,8 @@ if (isset($page['category']))
// displayed, and execution is stopped
if (!in_array($page['image_id'], $page['items']))
{
- die('Fatal: this picture does not belong to this section');
+ page_not_found('The requested image does not belong to this image set',
+ duplicate_index_url() );
}
// +-----------------------------------------------------------------------+