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.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/admin/user/unban.php b/actions/admin/user/unban.php
index 7f7ce3157..1f715008e 100644
--- a/actions/admin/user/unban.php
+++ b/actions/admin/user/unban.php
@@ -26,7 +26,7 @@
if ( ($obj instanceof ElggUser) && ($obj->canEdit()))
{
// Now actually disable it
- if ($obj->enable())
+ if ($obj->unban())
system_message(elgg_echo('admin:user:unban:yes'));
else
register_error(elgg_echo('admin:user:unban:no'));