summaryrefslogtreecommitdiff
path: root/modules/profile
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2011-07-13 21:49:41 -0400
committerwebchick <webchick@24967.no-reply.drupal.org>2011-07-13 21:49:41 -0400
commitc69b525c382bd24d389e56af3033d5a82051aab1 (patch)
tree27e524eb45f316d2a84203a14fb5cf483506f3d5 /modules/profile
parentf2d2cf8a85df17c6c3bef236a8db147739529259 (diff)
downloadbrdo-c69b525c382bd24d389e56af3033d5a82051aab1.tar.gz
brdo-c69b525c382bd24d389e56af3033d5a82051aab1.tar.bz2
Issue #348448 follow-up by jrchamp, catch: Fix E_STRICT errors.
Diffstat (limited to 'modules/profile')
-rw-r--r--modules/profile/profile.module1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/profile/profile.module b/modules/profile/profile.module
index 2374fe8ea..1da4c6f47 100644
--- a/modules/profile/profile.module
+++ b/modules/profile/profile.module
@@ -544,6 +544,7 @@ function template_preprocess_profile_block(&$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 = check_plain($field->title);
$variables['profile'][$field->name]->value = $field->value;
$variables['profile'][$field->name]->type = $field->type;