Skip to content
Snippets Groups Projects
Commit 06008543 authored by Vincent Massol's avatar Vincent Massol
Browse files

XWIKI-12946: User avatar fails to display properly when using #displayUser under some conditions

parent 0d9e4195
No related branches found
No related tags found
No related merge requests found
......@@ -334,6 +334,10 @@ $xwiki.getUserName("xwiki:${username}")
#break
#end
#end
#else
## This ensures that $avatarAttachment is always set before the following "if" is called, preventing a previous
## call to this macro from leaking...
#set ($avatarAttachment = $NULL)
#end
#if ($avatarAttachment && $avatarAttachment.isImage())
#set ($queryString = '')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment