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

@ -69,7 +69,7 @@ namespace Server.Misc
private static string Combine( string path1, string path2 )
{
if ( path1 == "" )
if ( path1.Length == 0 )
return path2;
return Path.Combine( path1, path2 );
@ -257,4 +257,4 @@ namespace Server.Misc
);
}
}
}
}

View file

@ -91,7 +91,7 @@ namespace Server
{
string type = element.GetAttribute( "type" );
if ( type == null || type == String.Empty )
if ( String.IsNullOrEmpty( type ) )
continue;
try
@ -106,4 +106,4 @@ namespace Server
}
}
}
}
}

View file

@ -46,7 +46,7 @@ namespace Server.Misc
footer = "This profile has been locked.";
}
if ( footer == "" && beholder == beheld )
if ( footer.Length == 0 && beholder == beheld )
footer = GetAccountDuration( beheld );
string body = beheld.Profile;
@ -95,4 +95,4 @@ namespace Server.Misc
return false;
}
}
}
}