Code Duplication    Length = 3-3 lines in 2 locations

main/admin/user_move_stats.php 1 location

@@ 667-669 (lines=3) @@
664
665
// Some pagination
666
$page = 1;
667
if (isset($_GET['page']) && !empty($_GET['page'])) {
668
    $page = intval($_GET['page']);
669
}
670
$default = 20;
671
$count = UserManager::get_number_of_users();
672
$nro_pages = round($count / $default) + 1;

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

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