String patch, thanks Carmina

This commit is contained in:
mark 2006-12-12 19:22:43 +00:00
parent 332effd18f
commit 88658b58e2
15 changed files with 33 additions and 33 deletions

View file

@ -55,7 +55,7 @@ namespace Server.Guilds
string s = guild.Charter;
if( s == null || s == "" )
if( String.IsNullOrEmpty( s ) )
s = "The guild leader has not yet set the guild charter.";
AddHtml( 65, 216, 480, 80, s, true, true );
@ -172,4 +172,4 @@ namespace Server.Guilds
}
}
}
}
}

View file

@ -25,7 +25,7 @@ namespace Server.Gumps
AddHtmlLocalized( 125, 20, 250, 24, 1019070, false, false ); // You have agreed to purchase:
if ( vi.Description != null && vi.Description != "" )
if ( !String.IsNullOrEmpty( vi.Description ) )
AddLabel( 125, 45, 0, vi.Description );
else
AddHtmlLocalized( 125, 45, 250, 24, 1019072, false, false ); // an item without a description
@ -957,4 +957,4 @@ namespace Server.Gumps
}
}
}
}
}