Those two lines aren't necessary if line 622 is changed to:

`    ->findNLastByForum(array($workspace), $roles, 3);`