Code Duplication    Length = 3-3 lines in 2 locations

galleryshow.php 1 location

@@ 56-58 (lines=3) @@
53
54
    // Check if inspected userid -> redirect to userprofile and show admin countdown
55
    $inspect = smallworld_isInspected($id);
56
    if ('yes' === $inspect['inspect']) {
57
        $helper->redirect('userprofile.php?username=' . $GLOBALS['xoopsUser']->uname(), Constants::REDIRECT_DELAY_SHORT, _SMALLWORLD_INSPEC_usermsg);
58
    }
59
60
    $profile = $swUserHandler->checkIfProfile($id);
61
    if ($profile >= Constants::PROFILE_HAS_BOTH || 2 == $userisfriend[0] || true === $admin) {

index.php 1 location

@@ 50-52 (lines=3) @@
47
48
    // Check if inspected userid -> redirect to userprofile and show admin countdown
49
    $inspect = smallworld_isInspected($id);
50
    if ('yes' === $inspect['inspect']) {
51
        $helper->redirect('userprofile.php?username=' . $GLOBALS['xoopsUser']->getVar('uname'), Constants::REDIRECT_DELAY_NONE);
52
    }
53
54
    $GLOBALS['xoopsTpl']->assign('ownerofpage', $id);
55
    $GLOBALS['xoopsTpl']->assign('isadminuser', ($helper->isUserAdmin() ? 'YES' : 'NO'));