aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-10-18 08:17:57 -0400
committerCash Costello <cash.costello@gmail.com>2011-10-18 08:17:57 -0400
commitfb5243deb0046d68bc63e388fa16ead4d85bd11f (patch)
tree1f8c7fbe793f985e9de83b9bfbe71b3cf05e955a
parent63ebe7b121105beb7e4c8b9b82e3c649f6a9a489 (diff)
downloadelgg-fb5243deb0046d68bc63e388fa16ead4d85bd11f.tar.gz
elgg-fb5243deb0046d68bc63e388fa16ead4d85bd11f.tar.bz2
fixed typo in setting the default profile fields
-rw-r--r--engine/lib/users.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php
index 55ebddd3a..f47cc1add 100644
--- a/engine/lib/users.php
+++ b/engine/lib/users.php
@@ -1361,11 +1361,10 @@ function elgg_profile_fields_setup() {
'twitter' => 'text'
);
- $loaded_default = array();
+ $loaded_defaults = array();
if ($fieldlist = elgg_get_config('profile_custom_fields')) {
if (!empty($fieldlist)) {
$fieldlistarray = explode(',', $fieldlist);
- $loaded_defaults = array();
foreach ($fieldlistarray as $listitem) {
if ($translation = elgg_get_config("admin_defined_profile_{$listitem}")) {
$type = elgg_get_config("admin_defined_profile_type_{$listitem}");