Skip to content

Commit

Permalink
fix for report checking
Browse files Browse the repository at this point in the history
  • Loading branch information
MARTINS Charly committed Jan 10, 2019
1 parent 9d25417 commit 41ca010
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Controller/ThreadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ function reportAction($post_id)
;
$post = $this->em->getRepository('YosimitsoWorkingForumBundle:Post')->findOneById($post_id);

if (is_null($check_already) && empty($post->getModerateReason) && !is_null($this->user)) // THE POST HASN'T BEEN REPORTED AND NOT ALREADY MODERATED
if (is_null($check_already) && empty($post->getModerateReason()) && !is_null($this->user)) // THE POST HASN'T BEEN REPORTED AND NOT ALREADY MODERATED
{
$post = $this->em->getRepository('YosimitsoWorkingForumBundle:Post')->findOneById($post_id);
if (!is_null($post)) {
Expand Down

0 comments on commit 41ca010

Please sign in to comment.