Skip to content

Commit

Permalink
Issue #2046677 by drumm | tvn: Fixed Strict warning: Creating default…
Browse files Browse the repository at this point in the history
… object from empty value in template_preprocess_profile_listing().
  • Loading branch information
DavidRothstein committed Oct 2, 2013
1 parent ace62d6 commit a8b2b4e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/profile/profile.module
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a8b2b4e

Please sign in to comment.