Code Duplication    Length = 3-3 lines in 2 locations

main/inc/lib/online.inc.php 1 location

@@ 103-105 (lines=3) @@
100
    // Database table definition
101
    $tbl_track_login = Database :: get_main_table(TABLE_STATISTIC_TRACK_E_LOGIN);
102
103
    if (empty($user_id)) {
104
        $user_id = isset($_GET['uid']) ? intval($_GET['uid']) : 0;
105
    }
106
107
    //Changing global chat status to offline
108
    if (api_is_global_chat_enabled()) {

main/admin/user_move_stats.php 1 location

@@ 611-613 (lines=3) @@
608
609
// Some pagination
610
$page = 1;
611
if (isset($_GET['page']) && !empty($_GET['page'])) {
612
    $page = intval($_GET['page']);
613
}
614
$default = 20;
615
$count          = UserManager::get_number_of_users();
616
$nro_pages      = round($count/$default) + 1;