Code Duplication    Length = 3-3 lines in 2 locations

admin/entry.php 1 location

@@ 414-416 (lines=3) @@
411
    // Save to database
412
    if (!$entryID) {
413
        // verify that the term does not exists
414
        if (LexikonUtility::isTermPresent($term, $xoopsDB->prefix('lxentries'))) {
415
            redirect_header('javascript:history.go(-1)', 2, _AM_LEXIKON_ITEMEXISTS . '<br>' . $term);
416
        }
417
        if ($xoopsDB->query('INSERT INTO '
418
                            . $xoopsDB->prefix('lxentries')
419
                            . " (entryID, categoryID, term, init, definition, ref, url, uid, submit, datesub, html, smiley, xcodes, breaks, block, offline, notifypub, request ) VALUES (0, '$categoryID', '$term', '$init', '$definition', '$ref', '$url', '$uid', '$submit', '$date', '$html', '$smiley', '$xcodes', '$breaks', '$block', '$offline', '$notifypub', '$request' )")

submit.php 1 location

@@ 153-155 (lines=3) @@
150
            $autoapprove = 1;
151
        }
152
        // verify that the term not exists
153
        if (LexikonUtility::isTermPresent($term, $xoopsDB->prefix('lxentries'))) {
154
            redirect_header('javascript:history.go(-1)', 2, _MD_LEXIKON_ITEMEXISTS . '<br>' . $term);
155
        }
156
        $result = $xoopsDB->query('INSERT INTO '
157
                                  . $xoopsDB->prefix('lxentries')
158
                                  . " (entryID, categoryID, term, init, definition, ref, url, uid, submit, datesub, html, smiley, xcodes, breaks, block, offline, notifypub ) VALUES ('', '$categoryID', '$term', '$init', '$definition', '$ref', '$url', '$uid', '$submit', '$datesub', '$html', '$smiley', '$xcodes', '$breaks','$block', '$offline', '$notifypub')");