diff options
author | David Rothstein <drothstein@gmail.com> | 2013-10-01 23:57:00 -0400 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2013-10-01 23:57:00 -0400 |
commit | a8b2b4e1f30ced15b43fae7fa8b344b1eaa6b69c (patch) | |
tree | 3f90fb5bfcb65f7442057f675a9e0a03fceb3e47 /modules/profile/profile.module | |
parent | ace62d67ea77fdfe0e72a2eb3ca9dee478b051d7 (diff) | |
download | brdo-a8b2b4e1f30ced15b43fae7fa8b344b1eaa6b69c.tar.gz brdo-a8b2b4e1f30ced15b43fae7fa8b344b1eaa6b69c.tar.bz2 |
Issue #2046677 by drumm | tvn: Fixed Strict warning: Creating default object from empty value in template_preprocess_profile_listing().
Diffstat (limited to 'modules/profile/profile.module')
-rw-r--r-- | modules/profile/profile.module | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/profile/profile.module b/modules/profile/profile.module index d76d08ac6..39cf030a3 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; |