--- pages/comment/CommentHandler.inc.php 2010-12-06 15:48:01.000000000 -0800 +++ pages/comment/CommentHandler.inc.php 2010-12-06 15:48:28.000000000 -0800 @@ -91,6 +91,7 @@ $this->validate($paperId); $paper =& $this->paper; + $commentDao =& DAORegistry::getDAO('CommentDAO'); $parent =& $commentDao->getComment($parentId, $paperId); if (isset($parent) && $parent->getPaperId() != $paperId) { Request::redirect(null, null, null, 'view', array($paperId, $galleyId));