From 99e0cbb614ff2d606a6ddadab67b8c713f4b9a38 Mon Sep 17 00:00:00 2001 From: ben Date: Mon, 18 Aug 2008 09:51:19 +0000 Subject: Moving the disable_entities call git-svn-id: https://code.elgg.org/elgg/trunk@2000 36083f99-b078-4883-b0ff-0f9b5a30f544 --- actions/admin/user/ban.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actions') 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 -- cgit v1.2.3