aboutsummaryrefslogtreecommitdiff
path: root/mod/bookmarks
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-06-15 22:55:21 -0400
committerCash Costello <cash.costello@gmail.com>2012-06-15 22:55:21 -0400
commiteb9f207972cf4ebeec71cf7e3a0e762df5d4c40a (patch)
tree7c1bb1259206a3c6a3a165e27d4c431d6bd9e896 /mod/bookmarks
parent81dac97890197658e5446e464604c2bc15903e5a (diff)
downloadelgg-eb9f207972cf4ebeec71cf7e3a0e762df5d4c40a.tar.gz
elgg-eb9f207972cf4ebeec71cf7e3a0e762df5d4c40a.tar.bz2
Fixes #4496, #4500 Refs #2814 Add consistent error message when content does not exist or user does not have access
Diffstat (limited to 'mod/bookmarks')
-rw-r--r--mod/bookmarks/pages/bookmarks/view.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/mod/bookmarks/pages/bookmarks/view.php b/mod/bookmarks/pages/bookmarks/view.php
index 2439d2ee8..c819b8b41 100644
--- a/mod/bookmarks/pages/bookmarks/view.php
+++ b/mod/bookmarks/pages/bookmarks/view.php
@@ -6,6 +6,10 @@
*/
$bookmark = get_entity(get_input('guid'));
+if (!$bookmark) {
+ register_error(elgg_echo('noaccess'));
+ forward('');
+}
$page_owner = elgg_get_page_owner_entity();