aboutsummaryrefslogtreecommitdiff
path: root/actions/admin/user/delete.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/admin/user/delete.php')
-rw-r--r--actions/admin/user/delete.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/admin/user/delete.php b/actions/admin/user/delete.php
index 015d25371..1e77984c5 100644
--- a/actions/admin/user/delete.php
+++ b/actions/admin/user/delete.php
@@ -24,10 +24,10 @@
if (delete_entity($guid))
system_message(elgg_echo('admin:user:delete:yes'));
else
- system_message(elgg_echo('admin:user:delete:no'));
+ register_error(elgg_echo('admin:user:delete:no'));
}
else
- system_message(elgg_echo('admin:user:delete:no'));
+ register_error(elgg_echo('admin:user:delete:no'));
forward($_SERVER['HTTP_REFERER']);
exit;