Skip to content
Snippets Groups Projects
Commit 7afd865d authored by rswindell's avatar rswindell
Browse files

Fixed bug when viewing email msgs from users without an avatar:

!JavaScript .../showmsgavatar.js line 27: TypeError: msg_area.sub[sub] is undefined
parent 2ca27120
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@ if(!(bbs.msg_attr&MSG_ANONYMOUS)
var Avatar = load({}, 'avatar_lib.js');
var success = Avatar.draw(bbs.msg_from_ext, bbs.msg_from, bbs.msg_from_net, /* above: */true, /* right-justified: */true
,bbs.msghdr_top_of_screen);
if(!success) {
if(!success && bbs.smb_sub_code) {
draw_default_avatar(bbs.smb_sub_code);
}
console.attributes = 7; // Clear the background attribute as the next line might scroll, filling with BG attribute
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment