Code Duplication    Length = 3-3 lines in 2 locations

article.php 1 location

@@ 68-70 (lines=3) @@
65
} else {
66
    //get entry object
67
    $_entryob =& $_entrydata_handler->getArticleOnePermcheck($articleID, true, true);
68
    if (!is_object($_entryob)) {
69
        redirect_header(XOOPS_URL . "/modules/" . $moduleDirName . "/index.php", 1, "Not Found");
70
    }
71
}
72
//-------------------------------------
73
$articles = $_entryob->toArray();

print.php 1 location

@@ 40-42 (lines=3) @@
37
    //get entry object
38
    $_entrydata_handler =& xoops_getmodulehandler('entryget', $moduleDirName);
39
    $_entryob           =& $_entrydata_handler->getArticleOnePermcheck($articleID, true, true);
40
    if (!is_object($_entryob)) {
41
        redirect_header(XOOPS_URL . "/modules/" . $moduleDirName . "/index.php", 1, "Not Found");
42
    }
43
    //-------------------------------------
44
    $articles = $_entryob->toArray();
45
    //get category object