Skip to main content

Bug - empty avatar div shows as a tiny dot

944 Views
0 Replies
1 min read
If the avatar is set not to display, its div
<div class="avatar">'.CommunityQuizHelper::getUserAvatar($quiz->created_by, $config).'</div>

still shows as a tiny dot and takes a little space left of the hits number.

You need to bring this div inside the condition because there is no reason to show it if there is no avatar to show.
Like this

<?php echo ($config == '1') ? '<div class="avatar">'.CommunityQuizHelper::getUserAvatar($quiz->created_by, $config).'</div>' : '';?>

0 Replies

No Replies Yet

Topic Author

A

abtop

@abtop

Topic Stats

Created Friday, 30 March 2012 15:54
Last Updated Friday, 30 March 2012 15:54
Replies 0
Views 944
Likes 0

Share This Topic