diff options
author | cash <cash.costello@gmail.com> | 2011-11-10 21:45:55 -0500 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-11-10 21:45:55 -0500 |
commit | ef23a0d09b76f7e78262d3428fd109cf82594537 (patch) | |
tree | 2d03ff248f8947b39037d04d971f0c235f819953 /mod/pages | |
parent | 8cca602e2bc1c65b99a2d0c2a60255ab09ca4f3d (diff) | |
download | elgg-ef23a0d09b76f7e78262d3428fd109cf82594537.tar.gz elgg-ef23a0d09b76f7e78262d3428fd109cf82594537.tar.bz2 |
fixed WSOD when trying to edit a private page
Diffstat (limited to 'mod/pages')
-rw-r--r-- | mod/pages/pages/pages/edit.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/pages/pages/pages/edit.php b/mod/pages/pages/pages/edit.php index 6f54d72bf..1f411b94d 100644 --- a/mod/pages/pages/pages/edit.php +++ b/mod/pages/pages/pages/edit.php @@ -10,12 +10,14 @@ gatekeeper(); $page_guid = (int)get_input('guid'); $page = get_entity($page_guid); if (!$page) { - + register_error(elgg_echo('noaccess')); + forward(''); } $container = $page->getContainerEntity(); if (!$container) { - + register_error(elgg_echo('noaccess')); + forward(''); } elgg_set_page_owner_guid($container->getGUID()); |