diff --git a/bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionPost_getAuthorDict.xml b/bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionPost_getAuthorDict.xml index 49078de2070216537fb9428610ffb1ae4be35760..986fd2f2812f234685e02a963d8ff75642b05dc0 100644 --- a/bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionPost_getAuthorDict.xml +++ b/bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionPost_getAuthorDict.xml @@ -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 diff --git a/bt5/erp5_discussion/bt/revision b/bt5/erp5_discussion/bt/revision index 0973804c41c39805888c4929d03b076c4e5a2247..eafdfb06c55856bbcc9bb2b69ed9d055f6ae0557 100644 --- a/bt5/erp5_discussion/bt/revision +++ b/bt5/erp5_discussion/bt/revision @@ -1 +1 @@ -137 \ No newline at end of file +138 \ No newline at end of file