|
@@ 159-163 (lines=5) @@
|
| 156 |
|
$users = bab_OCGetCollaborators($ide); |
| 157 |
|
$superior = bab_OCGetSuperior($ide); |
| 158 |
|
$this->superior_id = 0; |
| 159 |
|
if ($superior !== 0 ) |
| 160 |
|
{ |
| 161 |
|
$this->superior_id = $superior['id_user']; |
| 162 |
|
$this->superior_name = bab_toHtml($superior['lastname'].' '.$superior['firstname']); |
| 163 |
|
} |
| 164 |
|
$this->b_rights = ($this->superior_id != $GLOBALS['BAB_SESS_USERID']); |
| 165 |
|
$this->set_rights = (bool) absences_getVacationOption('chart_superiors_set_rights'); |
| 166 |
|
|
|
@@ 192-195 (lines=4) @@
|
| 189 |
|
|
| 190 |
|
while (list(,$arr) = each($users)) |
| 191 |
|
{ |
| 192 |
|
if ($arr['id_user'] != $this->superior_id) |
| 193 |
|
{ |
| 194 |
|
$this->users[$arr['id_user']] = $arr['lastname'].' '.$arr['firstname']; |
| 195 |
|
} |
| 196 |
|
} |
| 197 |
|
bab_sort::natcasesort($this->users); |
| 198 |
|
|