Bug Double post count decease for delete + thread move

There is a bug in this version
X

Xon

Guest
If you delete a thread, and then move it from a forum which counts posts to a forum which does not count posts; users of that thread get their post count updated twice.

This also applies to moving a deleted thread and then undeleting it, at which point the post-count is increased twice over what it should.

The problem is the very first part of Thread::threadMoved;
PHP:

Code:
    protected function threadMoved(Forum $from, Forum $to)
    {
        if...

Read more

Continue reading...