diff options
author | András Szepesházi <szepeshazi@gmail.com> | 2011-11-24 12:37:44 +0100 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2011-11-25 14:08:30 -0500 |
commit | af4c23094d361f935b6603ac43a114014682e279 (patch) | |
tree | bc8081f44e72afb4d94b0b7283cee318e2e1829a /actions | |
parent | 3d9b7cc539d390043f1c28d1776dc97e591f5d87 (diff) | |
download | elgg-af4c23094d361f935b6603ac43a114014682e279.tar.gz elgg-af4c23094d361f935b6603ac43a114014682e279.tar.bz2 |
Fixed typo that prevented creating an admin user via the Admin panel (user was created, but not elevated to admin).
Diffstat (limited to 'actions')
-rw-r--r-- | actions/useradd.php | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } |