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

@ -232,7 +232,7 @@ namespace Server.Mobiles
else
item.LabelTo( from, 1043304, vi.Price.ToString() ); // Price: ~1_COST~
if ( vi.Description != null && vi.Description != "" )
if ( !String.IsNullOrEmpty( vi.Description ) )
{
// The localized message (1043305) is no longer valid - <br>Seller's Description:<br>"~1_DESC~"
item.LabelTo( from, "Description: {0}", vi.Description );
@ -961,7 +961,7 @@ namespace Server.Mobiles
if ( vi != null )
{
string name;
if ( item.Name != null && item.Name != "" )
if ( !String.IsNullOrEmpty( item.Name ) )
name = item.Name;
else
name = "#" + item.LabelNumber.ToString();
@ -1719,4 +1719,4 @@ namespace Server.Mobiles
Timer.DelayCall( TimeSpan.Zero, new TimerCallback( Delete ) );
}
}
}
}