]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
fixed typo in setting the default profile fields
authorCash Costello <cash.costello@gmail.com>
Tue, 18 Oct 2011 12:17:57 +0000 (08:17 -0400)
committerCash Costello <cash.costello@gmail.com>
Tue, 18 Oct 2011 12:17:57 +0000 (08:17 -0400)
engine/lib/users.php

index 55ebddd3ace27336564298fef6e84c27cfb236d8..f47cc1addcd3505613e5ce6ffe71d5561542827c 100644 (file)
@@ -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}");