diff options
Diffstat (limited to 'actions/admin/user/ban.php')
-rw-r--r-- | actions/admin/user/ban.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/actions/admin/user/ban.php b/actions/admin/user/ban.php index f6ae30fea..bba8205e6 100644 --- a/actions/admin/user/ban.php +++ b/actions/admin/user/ban.php @@ -21,7 +21,8 @@ if ( ($obj instanceof ElggUser) && ($obj->canEdit())) { - if ($obj->disable()) + // Now actually disable it + if ($obj->disable('banned')) system_message(elgg_echo('admin:user:ban:yes')); else register_error(elgg_echo('admin:user:ban:no')); |