aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrás Szepesházi <szepeshazi@gmail.com>2011-11-24 12:37:44 +0100
committercash <cash.costello@gmail.com>2011-11-28 21:44:02 -0500
commit7f09d822115bcd37ae0350d60ef5065b2518e63f (patch)
tree07be18091f95311c1a66b81fe7cb379e97749623
parenta07b610b49a51ccf5885bf220700115d830c2707 (diff)
downloadelgg-7f09d822115bcd37ae0350d60ef5065b2518e63f.tar.gz
elgg-7f09d822115bcd37ae0350d60ef5065b2518e63f.tar.bz2
Fixed typo that prevented creating an admin user via the Admin panel (user was created, but not elevated to admin).
-rw-r--r--actions/useradd.php2
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();
}