aboutsummaryrefslogtreecommitdiff
path: root/lib/helpers.php
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-12-17 15:55:57 -0500
committercash <cash.costello@gmail.com>2011-12-17 15:55:57 -0500
commit6f51b4a2ce1b7945ca5b02c5a00a701eb985c3f0 (patch)
tree86b170239a75f282e95cfeba49b0fb6262d8d731 /lib/helpers.php
parent4c677d75bef1f2e6c99e040ed79c712adf4262eb (diff)
downloadelgg-6f51b4a2ce1b7945ca5b02c5a00a701eb985c3f0.tar.gz
elgg-6f51b4a2ce1b7945ca5b02c5a00a701eb985c3f0.tar.bz2
fixed issues preventing account creation
Diffstat (limited to 'lib/helpers.php')
-rw-r--r--lib/helpers.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/helpers.php b/lib/helpers.php
index c7158235a..765fc0a61 100644
--- a/lib/helpers.php
+++ b/lib/helpers.php
@@ -43,7 +43,7 @@ function openid_client_prepare_registration_vars(array $data) {
if (isset($data['username'])) {
$vars['username'] = $data['username'];
} else if (isset($data['email'])) {
- $vars['username'] = array_pop(explode('@', $data['email']));
+ $vars['username'] = array_shift(explode('@', $data['email']));
} else {
$vars['username'] = null;
}