]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
stop page propagation if there is no page or container
authorMatt Beckett <beck24@gmail.com>
Fri, 13 Sep 2013 05:20:34 +0000 (22:20 -0700)
committerMatt Beckett <beck24@gmail.com>
Fri, 13 Sep 2013 05:20:34 +0000 (22:20 -0700)
mod/pages/pages/pages/history.php

index 8725961794889e22018a29c6f12fb71a620fe2e8..7f5fa4f4fdb31b2f8ed4354cd2b901894125f43f 100644 (file)
@@ -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());