String patch, thanks Carmina
This commit is contained in:
parent
332effd18f
commit
88658b58e2
15 changed files with 33 additions and 33 deletions
|
|
@ -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
|
|||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue