Code Duplication    Length = 4-4 lines in 2 locations

admin/brokenvideo.php 1 location

@@ 147-150 (lines=4) @@
144
                $email      = '';
145
                $sendername = '';
146
147
                if ($sender !== 0) {
148
                    $result3 = $GLOBALS['xoopsDB']->query('SELECT uname, email FROM ' . $GLOBALS['xoopsDB']->prefix('users') . ' WHERE uid=' . $sender);
149
                    list($sendername, $email) = $GLOBALS['xoopsDB']->fetchRow($result3);
150
                }
151
                $result4 = $GLOBALS['xoopsDB']->query('SELECT uname, email FROM ' . $GLOBALS['xoopsDB']->prefix('users') . '  WHERE uid=' . $sender);
152
                list($ownername, $owneremail) = $GLOBALS['xoopsDB']->fetchRow($result4);
153

class/utility.php 1 location

@@ 2501-2504 (lines=4) @@
2498
     */
2499
    public static function xtubeRenderImageHeader($indeximage = '', $indexheading = '')
2500
    {
2501
        if ($indeximage === '') {
2502
            $result = $GLOBALS['xoopsDB']->query('SELECT indeximage, indexheading FROM ' . $GLOBALS['xoopsDB']->prefix('xoopstube_indexpage'));
2503
            list($indeximage, $indexheading) = $GLOBALS['xoopsDB']->fetchrow($result);
2504
        }
2505
2506
        $image = '';
2507
        if (!empty($indeximage)) {