aboutsummaryrefslogtreecommitdiff
path: root/actions/admin/user
diff options
context:
space:
mode:
Diffstat (limited to 'actions/admin/user')
-rw-r--r--actions/admin/user/ban.php2
1 files changed, 0 insertions, 2 deletions
diff --git a/actions/admin/user/ban.php b/actions/admin/user/ban.php
index 030f5ae73..9a0ad58bb 100644
--- a/actions/admin/user/ban.php
+++ b/actions/admin/user/ban.php
@@ -26,8 +26,6 @@ if (($obj instanceof ElggUser) && ($obj->canEdit())) {
register_error(elgg_echo('admin:user:ban:no'));
}
} else {
- $canedit = $obj->canEdit();
- $isinstance = ($obj instanceof ElggUser);
register_error(elgg_echo('admin:user:ban:no'));
}