summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2015-12-27 23:20:09 +0100
committerPhilip Häusler <msquare@notrademark.de>2015-12-27 23:20:09 +0100
commit897053e049a4c822ac59baec777f4898965c1c51 (patch)
tree50df7c13ab500e145e5bd2c6bfaa4bc21891bb6d
parent667466b9d0e9293a6daec7ff7fa0a1059832f55c (diff)
redirect to users profile page after marking as arrived or not arrived
-rw-r--r--includes/pages/admin_arrive.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/includes/pages/admin_arrive.php b/includes/pages/admin_arrive.php
index c7fcab63..a061df6a 100644
--- a/includes/pages/admin_arrive.php
+++ b/includes/pages/admin_arrive.php
@@ -16,7 +16,8 @@ function admin_arrive() {
if ($user_source != null) {
sql_query("UPDATE `User` SET `Gekommen`=0, `arrival_date` = NULL WHERE `UID`='" . sql_escape($id) . "' LIMIT 1");
engelsystem_log("User set to not arrived: " . User_Nick_render($user_source));
- $msg = success(_("Reset done. Angel has not arrived."), true);
+ success(_("Reset done. Angel has not arrived."));
+ redirect(user_link($user_source));
} else
$msg = error(_("Angel not found."), true);
} elseif (isset($_REQUEST['arrived']) && preg_match("/^[0-9]*$/", $_REQUEST['arrived'])) {
@@ -25,7 +26,8 @@ function admin_arrive() {
if ($user_source != null) {
sql_query("UPDATE `User` SET `Gekommen`=1, `arrival_date`='" . time() . "' WHERE `UID`='" . sql_escape($id) . "' LIMIT 1");
engelsystem_log("User set has arrived: " . User_Nick_render($user_source));
- $msg = success(_("Angel has been marked as arrived."), true);
+ success(_("Angel has been marked as arrived."));
+ redirect(user_link($user_source));
} else
$msg = error(_("Angel not found."), true);
}