Code Duplication    Length = 5-5 lines in 2 locations

admin/main.php 1 location

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

submit.php 1 location

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