aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorMatt Beckett <beck24@gmail.com>2013-09-12 22:20:34 -0700
committerMatt Beckett <beck24@gmail.com>2013-09-12 22:20:34 -0700
commite02239465b538d0364043e4e8613279eb04408f8 (patch)
tree628b2007232fde12790938f345841511bdb3f936 /mod
parent96fd62420124d8b22e9a368532240a5c5066d628 (diff)
downloadelgg-e02239465b538d0364043e4e8613279eb04408f8.tar.gz
elgg-e02239465b538d0364043e4e8613279eb04408f8.tar.bz2
stop page propagation if there is no page or container
Diffstat (limited to 'mod')
-rw-r--r--mod/pages/pages/pages/history.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/pages/pages/pages/history.php b/mod/pages/pages/pages/history.php
index 872596179..7f5fa4f4f 100644
--- a/mod/pages/pages/pages/history.php
+++ b/mod/pages/pages/pages/history.php
@@ -9,12 +9,12 @@ $page_guid = get_input('guid');
$page = get_entity($page_guid);
if (!$page) {
-
+ forward('', '404');
}
$container = $page->getContainerEntity();
if (!$container) {
-
+ forward('', '404');
}
elgg_set_page_owner_guid($container->getGUID());