summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjaperry2017-08-28 13:09:37 (GMT)
committerDamien McKenna2018-04-18 23:59:29 (GMT)
commite1510fb5e585983daef6f85e04431ab5de8ef46f (patch)
tree6db1142fb71d2caaab7004e8f25a7721245e159f
parent9fbd214c49f2d2d0e6786e4dbd9163e025f2f3a5 (diff)
Issue #1156198 by japerry, dawehner: Strict warning: Creating default object from empty value in views_handler_field_comment_username->render_link()6.x-2.x
-rw-r--r--modules/comment/views_handler_field_comment_username.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/comment/views_handler_field_comment_username.inc b/modules/comment/views_handler_field_comment_username.inc
index 7b0a92f..7468eeb 100644
--- a/modules/comment/views_handler_field_comment_username.inc
+++ b/modules/comment/views_handler_field_comment_username.inc
@@ -29,6 +29,7 @@ class views_handler_field_comment_username extends views_handler_field {
function render_link($data, $values) {
if (!empty($this->options['link_to_user'])) {
+ $account = new stdClass();
$account->uid = $values->{$this->aliases['uid']};
$account->name = $values->{$this->field_alias};
$account->homepage = $values->{$this->aliases['homepage']};