diff --git a/classes/comment/CommentDAO.inc.php b/classes/comment/CommentDAO.inc.php index 6ec92b9..d4e7337 100644 --- a/classes/comment/CommentDAO.inc.php +++ b/classes/comment/CommentDAO.inc.php @@ -158,7 +158,7 @@ class CommentDAO extends DAO { if (!HookRegistry::call('CommentDAO::_returnCommentFromRow', array(&$comment, &$row, &$childLevels))) { if ($childLevels>0) $comment->setChildren($this->getCommentsByParentId($row['comment_id'], $childLevels-1)); - else if ($childLevels==ARTICLE_COMMENT_RECURSE_ALL) $comment->setChildren($this->getCommentsByParentId($row['comment_id'], ARTICLE_COMMENT_RECURSE_ALL)); + else if ($childLevels==SUBMISSION_COMMENT_RECURSE_ALL) $comment->setChildren($this->getCommentsByParentId($row['comment_id'], SUBMISSION_COMMENT_RECURSE_ALL)); } return $comment;