From 9e377f9e006c20c98aa757f1c30228293651a404 Mon Sep 17 00:00:00 2001 From: Jeroen Dalsem Date: Wed, 3 Oct 2012 14:03:01 +0200 Subject: fixed incomplete forward url --- mod/messages/pages/messages/read.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mod/messages/pages') 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 -- cgit v1.2.3