Skip to content

Commit 406faad

Browse files
committed
tiny fix
1 parent 91f686f commit 406faad

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

yaf_dnn/YafDnnModule.ascx.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,9 @@ private void CreateOrUpdateUser()
415415
dnnMembershipUser,
416416
this.forum1.BoardID,
417417
this.CurrentPortalSettings,
418-
this.Get<YafBoardSettings>());
418+
YafContext.Current == null
419+
? new YafLoadBoardSettings(this.forum1.BoardID)
420+
: YafContext.Current.Get<YafBoardSettings>());
419421

420422
// super admin check...
421423
if (dnnUserInfo.IsSuperUser)
@@ -515,7 +517,6 @@ private void InitializeComponent()
515517
// Create a new board
516518
this.createNewBoard = true;
517519
}
518-
519520
}
520521
catch (Exception)
521522
{

0 commit comments

Comments
 (0)