mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-03-11 21:11:02 +00:00
fix harmless exception if value is null
This commit is contained in:
parent
060cd78712
commit
77ddb79d81
@ -206,9 +206,11 @@ function getFullname( username, item ){
|
||||
item.text(username);
|
||||
getProfileResource( username, "fullname", undefined,
|
||||
function(args, value) {
|
||||
value.replace(/^\s+|\s+$/g, '');
|
||||
if( value.length )
|
||||
args.item.text(value);
|
||||
if( value ) {
|
||||
value.replace(/^\s+|\s+$/g, '');
|
||||
if( value.length )
|
||||
args.item.text(value);
|
||||
}
|
||||
}, {item: item} );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user