summaryrefslogtreecommitdiff
path: root/includes/pages
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2018-10-09 20:38:13 +0200
committermsquare <msquare@notrademark.de>2018-10-31 13:43:23 +0100
commitb069a938c6721ab5adddcbec4cff858ded6f0e1e (patch)
tree56f1da8663212ec14632cda03666928da96e1fbb /includes/pages
parent2dcb7cc2de448c664bbc9a7112f9cb13dc15c516 (diff)
Changed user_link and some other user functions to use the user id
Diffstat (limited to 'includes/pages')
-rw-r--r--includes/pages/admin_arrive.php4
-rw-r--r--includes/pages/admin_user.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/includes/pages/admin_arrive.php b/includes/pages/admin_arrive.php
index cb03437f..4f29b85d 100644
--- a/includes/pages/admin_arrive.php
+++ b/includes/pages/admin_arrive.php
@@ -36,7 +36,7 @@ function admin_arrive()
', [$user_id]);
engelsystem_log('User set to not arrived: ' . User_Nick_render($user_source));
success(__('Reset done. Angel has not arrived.'));
- redirect(user_link($user_source));
+ redirect(user_link($user_source['UID']));
} else {
$msg = error(__('Angel not found.'), true);
}
@@ -52,7 +52,7 @@ function admin_arrive()
', [time(), $user_id]);
engelsystem_log('User set has arrived: ' . User_Nick_render($user_source));
success(__('Angel has been marked as arrived.'));
- redirect(user_link($user_source));
+ redirect(user_link($user_source['UID']));
} else {
$msg = error(__('Angel not found.'), true);
}
diff --git a/includes/pages/admin_user.php b/includes/pages/admin_user.php
index 2ef48eb7..b4dd9c1b 100644
--- a/includes/pages/admin_user.php
+++ b/includes/pages/admin_user.php
@@ -165,7 +165,7 @@ function admin_user()
}
$html .= buttons([
- button(user_delete_link($user_source), glyph('lock') . __('delete'), 'btn-danger')
+ button(user_delete_link($user_source['UID']), glyph('lock') . __('delete'), 'btn-danger')
]);
$html .= "<hr />";