summaryrefslogtreecommitdiff
path: root/includes/pages/user_messages.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2019-12-08 11:48:58 +0100
committerGitHub <noreply@github.com>2019-12-08 11:48:58 +0100
commita3a938a1210f1bfb2680c25b2bcf53e47444bdba (patch)
treefd4c13fd9b714c0d8c60b6d3fe3e2fc88b82b717 /includes/pages/user_messages.php
parentb540ac93856065ce6e145930b6611e0a0946d646 (diff)
parent064a1750279be244f86cf24f29749b391b11f1dd (diff)
Merge pull request #685 from MyIgel/schedule-import
Rebuild Schedule import
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);
}