Commit e196631b authored by Jérome Perrin's avatar Jérome Perrin

erp5_discussion: Do not display a link to the author image when image is empty

parent 9e9db927
......@@ -66,7 +66,7 @@ if author is not None:\n
result[\'author_signature\'] = portal.ERP5Site_getUserPreferredForumSettingsDict(author.getReference())[\'preferred_forum_signature\']\n
result[\'author_title\'] = author.getTitle()\n
thumbnail = author.getDefaultImage()\n
if thumbnail is not None:\n
if thumbnail is not None and thumbnail.hasData():\n
result[\'author_thumbnail_url\'] = thumbnail.absolute_url()\n
\n
return result\n
......
137
\ No newline at end of file
138
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment