Code Duplication    Length = 4-4 lines in 2 locations

admin/brokenvideo.php 1 location

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

class/utility.php 1 location

@@ 2396-2399 (lines=4) @@
2393
     */
2394
    public static function xtubeRenderImageHeader($indeximage = '', $indexheading = '')
2395
    {
2396
        if ('' === $indeximage) {
2397
            $result = $GLOBALS['xoopsDB']->query('SELECT indeximage, indexheading FROM ' . $GLOBALS['xoopsDB']->prefix('xoopstube_indexpage'));
2398
            list($indeximage, $indexheading) = $GLOBALS['xoopsDB']->fetchrow($result);
2399
        }
2400
2401
        $image = '';
2402
        if (!empty($indeximage)) {