Code Duplication    Length = 3-4 lines in 2 locations

htdocs/modules/comments/class/helper.php 2 locations

@@ 329-331 (lines=3) @@
326
                            $comment->setVar('dohtml', 0);
327
                            $accesserror = true;
328
                        }
329
                        if (false != $accesserror) {
330
                            $xoops->redirect(
331
                                $redirect_page . '=' . $comment->getVar('itemid')
332
                                . '&com_id=' . $comment->getVar('id')
333
                                . '&com_mode=' . $mode . '&com_order=' . $order,
334
                                1,
@@ 485-488 (lines=4) @@
482
                                    1,
483
                                    _MD_COMMENTS_THANKSPOST
484
                                );
485
                            } else {
486
                                // not active, so redirect to top comment page
487
                                $xoops->redirect(
488
                                    $redirect_page . '=' . $comment->getVar('itemid') . '&com_mode=' . $mode
489
                                    . '&com_order=' . $order . '#comment' . $comment->getVar('id'),
490
                                    1,
491
                                    _MD_COMMENTS_THANKSPOST