Skip to content

Commit

Permalink
Update hierarchy.php
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy authored Apr 26, 2024
1 parent 777174e commit e9ecf38
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions htdocs/user/hierarchy.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,19 +104,19 @@

llxHeader('', $title, $help_url, '', 0, 0, $arrayofjs, $arrayofcss, '', 'bodyforlist');

$filters= [];
$filters = [];
if (($search_statut != '' && $search_statut >= 0)) {
$filters[]= "statut = ".$search_statut;
$filters[] = "statut = ".((int) $search_statut);
}
if (($search_employee != '' && $search_employee >= 0)) {
$filters [] = "employee = ".$search_employee;
$filters[] = "employee = ".((int) $search_employee);
}
$filter= '';
$sqlfilter= '';
if (!empty($filters)) {
$filter = join(' AND ', $filters);
$sqlfilter = join(' AND ', $filters);
}
// Load hierarchy of users
$user_arbo = $userstatic->get_full_tree(0, $filter);
$user_arbo = $userstatic->get_full_tree(0, $sqlfilter);


// Count total nb of records
Expand Down

0 comments on commit e9ecf38

Please sign in to comment.