summaryrefslogtreecommitdiff
path: root/includes/pages/user_messages.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/pages/user_messages.php')
-rw-r--r--includes/pages/user_messages.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/pages/user_messages.php b/includes/pages/user_messages.php
index ce496132..72bb9ae2 100644
--- a/includes/pages/user_messages.php
+++ b/includes/pages/user_messages.php
@@ -141,7 +141,7 @@ function user_messages()
'UPDATE `Messages` SET `isRead`=\'Y\' WHERE `id`=? LIMIT 1',
[$message_id]
);
- redirect(page_link_to('user_messages'));
+ throw_redirect(page_link_to('user_messages'));
} else {
return error(__('No Message found.'), true);
}
@@ -160,7 +160,7 @@ function user_messages()
);
if (!empty($message) && $message['SUID'] == $user->id) {
DB::delete('DELETE FROM `Messages` WHERE `id`=? LIMIT 1', [$message_id]);
- redirect(page_link_to('user_messages'));
+ throw_redirect(page_link_to('user_messages'));
} else {
return error(__('No Message found.'), true);
}
@@ -168,7 +168,7 @@ function user_messages()
case 'send':
if (Message_send($request->input('to'), $request->input('text'))) {
- redirect(page_link_to('user_messages'));
+ throw_redirect(page_link_to('user_messages'));
} else {
return error(__('Transmitting was terminated with an Error.'), true);
}