diff options
Diffstat (limited to 'mod/messages/actions/delete.php')
-rw-r--r-- | mod/messages/actions/delete.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/messages/actions/delete.php b/mod/messages/actions/delete.php index 395b5528b..0f5bb2813 100644 --- a/mod/messages/actions/delete.php +++ b/mod/messages/actions/delete.php @@ -57,7 +57,7 @@ if ($success) { if($type == 'sent'){ forward("mod/messages/sent.php?offset={$offset}"); }else{ - forward("mod/messages/?username=" . $_SESSION['user']->username . "&offset={$offset}"); + forward("mod/messages/?username=" . get_loggedin_user()->username . "&offset={$offset}"); } } else { register_error(elgg_echo("messages:notfound")); |