This function cause crashes when you answer to a pinned post (idk if it's the same for everyone)
Impossible to access an attribute ("poster") on a boolean variable ("").
So I have changed
public function dfLastTopicInForum(Forum $forum)
{
$topic = $this->em->getRepository('DForumBundle:Topic')->findOneBy(
array('forum' => $forum, 'pinned' => false),
array('lastPost' => 'DESC'));
return $topic;
}
To
public function dfLastTopicInForum(Forum $forum)
{
$topic = $this->em->getRepository('DForumBundle:Topic')->findOneBy(
array('forum' => $forum),
array('lastPost' => 'DESC'));
return $topic;
}
This function cause crashes when you answer to a pinned post (idk if it's the same for everyone)
Impossible to access an attribute ("poster") on a boolean variable ("").
So I have changed
To
And now it's work fine.