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/utilities.php 1 location

@@ 2377-2380 (lines=4) @@
2374
     */
2375
    public static function xtubeRenderImageHeader($indeximage = '', $indexheading = '')
2376
    {
2377
        if ('' === $indeximage) {
2378
            $result = $GLOBALS['xoopsDB']->query('SELECT indeximage, indexheading FROM ' . $GLOBALS['xoopsDB']->prefix('xoopstube_indexpage'));
2379
            list($indeximage, $indexheading) = $GLOBALS['xoopsDB']->fetchrow($result);
2380
        }
2381
2382
        $image = '';
2383
        if (!empty($indeximage)) {