Code Duplication    Length = 3-3 lines in 2 locations

htdocs/modules/system/admin/comments/main.php 1 location

@@ 284-286 (lines=3) @@
281
                // Start edit by voltan
282
                if ($comments_arr[$i]->getVar('com_uid') > 0) {
283
                    $poster =& $member_handler->getUser($comments_arr[$i]->getVar('com_uid'));
284
                    if (is_object($poster)) {
285
                        $comments_poster_uname = '<a href="' . XOOPS_URL . '/userinfo.php?uid=' . $comments_arr[$i]->getVar('com_uid') . '">' . $poster->getVar('uname') . '</a>';
286
                    }
287
                } elseif ($comments_arr[$i]->getVar('com_uid') == 0 && $comments_arr[$i]->getVar('com_user') != '') {
288
                    if ($comments_arr[$i]->getVar('com_url') != '') {
289
                        $comments_poster_uname = '<div class="pad2 marg2"><a href="' . $comments_arr[$i]->getVar('com_url') . '">' . $comments_arr[$i]->getVar('com_user') . '</a> ( <a href="mailto:' . $comments_arr[$i]->getVar('com_email') . '">' . $comments_arr[$i]->getVar('com_email') . '</a> ) ' . '</div>';

htdocs/class/commentrenderer.php 1 location

@@ 396-398 (lines=3) @@
393
        $poster['id'] = (int)$poster_id;
394
        if ($poster['id'] > 0) {
395
            $com_poster =& $this->_memberHandler->getUser($poster_id);
396
            if (is_object($com_poster)) {
397
                $poster['uname'] = '<a href="' . XOOPS_URL . '/userinfo.php?uid=' . $poster['id'] . '">' . $com_poster->getVar('uname') . '</a>';
398
            }
399
        } elseif ($poster['id'] == 0 && $poster_user != '') {
400
            $poster['id'] = 0; // to cope with deleted user accounts
401
            if (!empty($poster_website)) {