aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Dalsem <jdalsem@coldtrick.com>2012-10-03 14:03:01 +0200
committerJeroen Dalsem <jdalsem@coldtrick.com>2012-10-03 14:03:01 +0200
commit9e377f9e006c20c98aa757f1c30228293651a404 (patch)
treebdc641839fd15b204f83f62c06432399a0293c77
parent766fe8ebbcc600982dddce4d93b15b65a7b8c1fb (diff)
downloadelgg-9e377f9e006c20c98aa757f1c30228293651a404.tar.gz
elgg-9e377f9e006c20c98aa757f1c30228293651a404.tar.bz2
fixed incomplete forward url
-rw-r--r--mod/messages/pages/messages/read.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/messages/pages/messages/read.php b/mod/messages/pages/messages/read.php
index 19e3ecdd7..1a56399d3 100644
--- a/mod/messages/pages/messages/read.php
+++ b/mod/messages/pages/messages/read.php
@@ -8,8 +8,8 @@
gatekeeper();
$message = get_entity(get_input('guid'));
-if (!$message) {
- forward('messages/inbox');
+if (!$message || !elgg_instanceof($message, "object", "messages")) {
+ forward('messages/inbox/' . elgg_get_logged_in_user_entity()->username);
}
// mark the message as read