Code Duplication    Length = 5-5 lines in 2 locations

public-album.php 1 location

@@ 49-53 (lines=5) @@
46
}
47
48
//ASC ou DESC
49
if (isset($_GET['orderby']) && ($_GET['orderby'] === 'DESC' || $_GET['orderby'] === 'ASC')) {
50
    $orderby = $_GET['orderby'];
51
} else {
52
    $orderby = $GLOBALS['xoopsModuleConfig']['display_set_order'];
53
}
54
55
$SortbyOrderby = $sortby . ' ' . $orderby;
56

public-useralbum.php 1 location

@@ 52-56 (lines=5) @@
49
}
50
51
//ASC ou DESC
52
if (isset($_GET['orderby']) && ($_GET['orderby'] === 'DESC' || $_GET['orderby'] === 'ASC')) {
53
    $orderby = $_GET['orderby'];
54
} else {
55
    $orderby = $GLOBALS['xoopsModuleConfig']['display_set_order'];
56
}
57
58
$SortbyOrderby = $sortby . ' ' . $orderby;
59