Change user_id to id in get_user_id_from_original_id()

1.10.x
Yannick Warnier 10 years ago
parent e3fb89d83f
commit e63059b39b
  1. 4
      main/inc/lib/usermanager.lib.php

@ -842,7 +842,7 @@ class UserManager
{
$t_uf = Database::get_main_table(TABLE_MAIN_USER_FIELD);
$t_ufv = Database::get_main_table(TABLE_MAIN_USER_FIELD_VALUES);
$sql = "SELECT user_id
$sql = "SELECT id
FROM $t_uf uf
INNER JOIN $t_ufv ufv
ON ufv.field_id=uf.id
@ -852,7 +852,7 @@ class UserManager
$res = Database::query($sql);
$row = Database::fetch_object($res);
if ($row) {
return $row->user_id;
return $row->id;
} else {
return 0;
}

Loading…
Cancel
Save