Skip to content

Commit 0bdd511

Browse files
committed
fix #2667
1 parent cb266de commit 0bdd511

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Zero-K.info/Controllers/UsersController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ public ActionResult DeleteAllForumVotes(int accountID)
548548
var acc = db.Accounts.FirstOrDefault(x => x.AccountID == accountID);
549549
var votes = acc.AccountForumVotes;
550550

551-
foreach (var vote in votes)
551+
foreach (var vote in votes.ToList())
552552
{
553553
var post = vote.ForumPost;
554554
var author = post.Account;

0 commit comments

Comments
 (0)