fix current user

pull/2818/head
Alex Aragón 7 years ago
parent c6c3044548
commit 6f7a16f934
  1. 6
      main/admin/user_list.php

@ -459,8 +459,9 @@ function get_user_data($from, $number_of_items, $column, $direction)
$users = [];
$t = time();
while ($user = Database::fetch_row($res)) {
$currentUser = api_get_current_user();
while ($user = Database::fetch_row($res)) {
$userPicture = UserManager::getUserPicture(
$user[0],
USER_IMAGE_SIZE_SMALL
@ -1199,7 +1200,8 @@ if ($table->get_total_number_of_items() == 0) {
}
if ($add_user) {
$row_table = [];
$row_table[] = api_get_person_name($user['firstname'], $user['lastname']).' ('.$user['username'].') ';
$row_table[] = api_get_person_name($user['firstname'],
$user['lastname']) . ' (' . $user['username'] . ') ';
$row_table[] = $access_info_to_string;
$url = api_get_self() . '?action=add_user_to_my_url&user_id=' . $user['id'] . '&sec_token=' . Security::getTokenFromSession();
$row_table[] = Display::url(

Loading…
Cancel
Save