From e52870068d67a2360769f76a13d35318a8ec14ef Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 14 Jul 2012 11:59:19 -0400 Subject: Fixes #18 adds forwarding when no access --- pages/photos/image/view.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pages/photos/image') diff --git a/pages/photos/image/view.php b/pages/photos/image/view.php index 6bd0257e0..1d359b6c7 100644 --- a/pages/photos/image/view.php +++ b/pages/photos/image/view.php @@ -12,7 +12,9 @@ group_gatekeeper(); $photo_guid = (int) get_input('guid'); $photo = get_entity($photo_guid); if (!$photo) { - + register_error(elgg_echo('noaccess')); + $_SESSION['last_forward_from'] = current_page_url(); + forward(''); } $photo->addView(); -- cgit v1.2.3