diff --git a/modules/profile/profile.module b/modules/profile/profile.module index d76d08ac65f8..39cf030a3f60 100644 --- a/modules/profile/profile.module +++ b/modules/profile/profile.module @@ -571,6 +571,7 @@ function template_preprocess_profile_listing(&$variables) { // Supply filtered version of $fields that have values. foreach ($variables['fields'] as $field) { if ($field->value) { + $variables['profile'][$field->name] = new stdClass(); $variables['profile'][$field->name]->title = $field->title; $variables['profile'][$field->name]->value = $field->value; $variables['profile'][$field->name]->type = $field->type;