aboutsummaryrefslogtreecommitdiff
path: root/actions/admin/user/unban.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/admin/user/unban.php')
-rw-r--r--actions/admin/user/unban.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/actions/admin/user/unban.php b/actions/admin/user/unban.php
index 66173623a..883e074ed 100644
--- a/actions/admin/user/unban.php
+++ b/actions/admin/user/unban.php
@@ -12,10 +12,10 @@ $access_status = access_get_show_hidden_status();
access_show_hidden_entities(true);
$guid = get_input('guid');
-$obj = get_entity($guid);
+$user = get_entity($guid);
-if (($obj instanceof ElggUser) && ($obj->canEdit())) {
- if ($obj->unban()) {
+if (($user instanceof ElggUser) && ($user->canEdit())) {
+ if ($user->unban()) {
system_message(elgg_echo('admin:user:unban:yes'));
} else {
register_error(elgg_echo('admin:user:unban:no'));