From af4c23094d361f935b6603ac43a114014682e279 Mon Sep 17 00:00:00 2001 From: András Szepesházi Date: Thu, 24 Nov 2011 12:37:44 +0100 Subject: Fixed typo that prevented creating an admin user via the Admin panel (user was created, but not elevated to admin). --- actions/useradd.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actions') diff --git a/actions/useradd.php b/actions/useradd.php index 3df41af79..fdcd7e438 100644 --- a/actions/useradd.php +++ b/actions/useradd.php @@ -37,7 +37,7 @@ try { if ($guid) { $new_user = get_entity($guid); - if ($uew_user && $admin && elgg_is_admin_logged_in()) { + if ($new_user && $admin && elgg_is_admin_logged_in()) { $new_user->makeAdmin(); } -- cgit v1.2.3