Code Duplication    Length = 5-5 lines in 2 locations

admin/main.php 1 location

@@ 364-368 (lines=5) @@
361
        $newid = $GLOBALS['xoopsDB']->getInsertId();
362
363
        // Add item_tag to Tag-module
364
        if (!$lid) {
365
            $tagupdate = XoopstubeUtility::xtubeUpdateTag($newid, $item_tag);
366
        } else {
367
            $tagupdate = XoopstubeUtility::xtubeUpdateTag($lid, $item_tag);
368
        }
369
370
        // Send notifications
371
        if (!$lid) {

submit.php 1 location

@@ 88-92 (lines=5) @@
85
            $newid = $GLOBALS['xoopsDB']->getInsertId();
86
87
            // Add item_tag to Tag-module
88
            if ($lid == 0) {
89
                $tagupdate = XoopstubeUtility::xtubeUpdateTag($newid, $item_tag);
90
            } else {
91
                $tagupdate = XoopstubeUtility::xtubeUpdateTag($lid, $item_tag);
92
            }
93
94
            // Notify of new link (anywhere) and new link in category
95
            $notificationHandler = xoops_getHandler('notification');