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/album/view.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pages/photos/album/view.php') diff --git a/pages/photos/album/view.php b/pages/photos/album/view.php index cef3647ee..100cc44c6 100644 --- a/pages/photos/album/view.php +++ b/pages/photos/album/view.php @@ -12,8 +12,9 @@ group_gatekeeper(); $album_guid = (int) get_input('guid'); $album = get_entity($album_guid); if (!$album) { - // @todo album deleted or don't have access - forward('photos/all'); + register_error(elgg_echo('noaccess')); + $_SESSION['last_forward_from'] = current_page_url(); + forward(''); } elgg_set_page_owner_guid($album->getContainerGUID()); -- cgit v1.2.3