Show only users in a visible sessions BT#18720

pull/3888/head
Julio Montoya 5 years ago
parent 8350e3a84a
commit ab6ebe1c76
  1. 8
      main/mySpace/users.php

@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
/**
@ -19,7 +20,7 @@ if (!$allowToTrack) {
}
$nameTools = get_lang('Users');
$export_csv = isset($_GET['export']) && 'csv' == $_GET['export'] ? true : false;
$export_csv = isset($_GET['export']) && 'csv' === $_GET['export'] ? true : false;
$keyword = isset($_GET['keyword']) ? Security::remove_XSS($_GET['keyword']) : null;
$active = isset($_GET['active']) ? intval($_GET['active']) : 1;
$sleepingDays = isset($_GET['sleeping_days']) ? intval($_GET['sleeping_days']) : null;
@ -41,7 +42,7 @@ if (isset($_GET["user_id"]) && $_GET["user_id"] != "" && !isset($_GET["type"]))
];
}
if (isset($_GET["user_id"]) && $_GET["user_id"] != "" && isset($_GET["type"]) && $_GET["type"] == "coach") {
if (isset($_GET["user_id"]) && $_GET["user_id"] != "" && isset($_GET["type"]) && $_GET["type"] === "coach") {
$interbreadcrumb[] = ["url" => "coaches.php", "name" => get_lang('Tutors')];
}
@ -118,7 +119,8 @@ function get_users($from, $limit, $column, $direction)
$active,
$lastConnectionDate,
COURSEMANAGER,
$keyword
$keyword,
true
);
}

Loading…
Cancel
Save