aboutsummaryrefslogtreecommitdiff
path: root/actions/admin
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-18 09:51:19 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-18 09:51:19 +0000
commit99e0cbb614ff2d606a6ddadab67b8c713f4b9a38 (patch)
treea2e8dd4ec1215274cd96f54e7340f3de77e033b1 /actions/admin
parent6ed3c77c05c2cf6e16f0b65f818c50b0a6d9bee8 (diff)
downloadelgg-99e0cbb614ff2d606a6ddadab67b8c713f4b9a38.tar.gz
elgg-99e0cbb614ff2d606a6ddadab67b8c713f4b9a38.tar.bz2
Moving the disable_entities call
git-svn-id: https://code.elgg.org/elgg/trunk@2000 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions/admin')
-rw-r--r--actions/admin/user/ban.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/admin/user/ban.php b/actions/admin/user/ban.php
index 81aba67d1..d64ae28a5 100644
--- a/actions/admin/user/ban.php
+++ b/actions/admin/user/ban.php
@@ -20,10 +20,10 @@
$obj = get_entity($guid);
if ( ($obj instanceof ElggUser) && ($obj->canEdit()))
- {
+ {
+ disable_entities($obj->guid);
// Now actually disable it
if ($obj->disable('banned')) {
- disable_entities($obj->guid);
system_message(elgg_echo('admin:user:ban:yes'));
}
else