Fixed #500: correctly handling logout procedure performed with null username.

This commit is contained in:
Dario Solera 2010-02-28 13:44:36 +00:00
parent c7a05066d3
commit 3a67e81208
2 changed files with 4 additions and 2 deletions

View file

@ -16,5 +16,5 @@ using System.Reflection;
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("3.0.2.506")]
[assembly: AssemblyFileVersion("3.0.2.506")]
[assembly: AssemblyVersion("3.0.2.507")]
[assembly: AssemblyFileVersion("3.0.2.507")]

View file

@ -657,6 +657,8 @@ namespace ScrewTurn.Wiki {
/// </summary>
/// <param name="username">The username.</param>
public static void NotifyLogout(string username) {
if(string.IsNullOrEmpty(username)) return;
UserInfo user = FindUser(username);
if(user != null) {
IUsersStorageProviderV30 prov = user.Provider as IUsersStorageProviderV30;