Update user.class.php
This commit is contained in:
parent
fd078ef713
commit
0f8fc7ef2b
1 changed files with 3 additions and 0 deletions
|
|
@ -2925,6 +2925,9 @@ class User extends CommonObject
|
|||
$sql .= " WHERE entity = 0";
|
||||
} else {
|
||||
$sql .= " WHERE entity IN (".getEntity('user', 0).")";
|
||||
if ($limitTo == 'active') {
|
||||
$sql .= " AND statut = 1";
|
||||
}
|
||||
}
|
||||
if ($admin >= 0) {
|
||||
$sql .= " AND admin = ".(int) $admin;
|
||||
|
|
|
|||
Loading…
Reference in a new issue