From a8b2b4e1f30ced15b43fae7fa8b344b1eaa6b69c Mon Sep 17 00:00:00 2001 From: David Rothstein Date: Tue, 1 Oct 2013 23:57:00 -0400 Subject: Issue #2046677 by drumm | tvn: Fixed Strict warning: Creating default object from empty value in template_preprocess_profile_listing(). --- modules/profile/profile.module | 1 + 1 file changed, 1 insertion(+) (limited to 'modules') 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; -- cgit v1.2.3