Code Duplication    Length = 5-5 lines in 2 locations

public-album.php 1 location

@@ 38-42 (lines=5) @@
35
36
// HACK BLUETEEN TO SORT PHOTO BY USERS
37
//photo_date - photo_title - photo_hits - photo_rating
38
if (isset($_GET['sortby'])
39
    && ($_GET['sortby'] === 'photo_date'
40
        || $_GET['sortby'] === 'photo_title'
41
        || $_GET['sortby'] === 'photo_hits'
42
        || $_GET['sortby'] === 'photo_rating')) {
43
    $sortby = $_GET['sortby'];
44
} else {
45
    $sortby = 'photo_date';

public-useralbum.php 1 location

@@ 41-45 (lines=5) @@
38
39
//HACK BLUETEEN TO SORT PHOTOS BY USERS
40
//photo_date - photo_title - photo_hits - photo_rating
41
if (isset($_GET['sortby'])
42
    && ($_GET['sortby'] === 'photo_date'
43
        || $_GET['sortby'] === 'photo_title'
44
        || $_GET['sortby'] === 'photo_hits'
45
        || $_GET['sortby'] === 'photo_rating')) {
46
    $sortby = $_GET['sortby'];
47
} else {
48
    $sortby = 'photo_date';