diff options
author | cash <cash.costello@gmail.com> | 2011-12-17 15:55:57 -0500 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-12-17 15:55:57 -0500 |
commit | 6f51b4a2ce1b7945ca5b02c5a00a701eb985c3f0 (patch) | |
tree | 86b170239a75f282e95cfeba49b0fb6262d8d731 /lib | |
parent | 4c677d75bef1f2e6c99e040ed79c712adf4262eb (diff) | |
download | elgg-6f51b4a2ce1b7945ca5b02c5a00a701eb985c3f0.tar.gz elgg-6f51b4a2ce1b7945ca5b02c5a00a701eb985c3f0.tar.bz2 |
fixed issues preventing account creation
Diffstat (limited to 'lib')
-rw-r--r-- | lib/helpers.php | 2 |
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; } |