Update user.class.php
This commit is contained in:
parent
a9ddf2a5ad
commit
9bde70feba
@ -2411,8 +2411,18 @@ class User extends CommonObject
|
||||
$label .= '<br><b>'.$langs->trans("Job").':</b> '.dol_string_nohtmltag($this->job);
|
||||
}
|
||||
$label .= '<br><b>'.$langs->trans("Email").':</b> '.dol_string_nohtmltag($this->email);
|
||||
if (!empty($this->phone)) {
|
||||
$label .= '<br><b>'.$langs->trans("Phone").':</b> '.dol_string_nohtmltag($this->phone);
|
||||
if (!empty($this->office_phone) || !empty($this->office_fax) || !empty($this->fax)) {
|
||||
$phonelist = array();
|
||||
if ($this->office_phone) {
|
||||
$phonelist[] = dol_print_phone($this->office_phone, $this->country_code, $this->id, 0, '', ' ', 'phone');
|
||||
}
|
||||
if ($this->office_fax) {
|
||||
$phonelist[] = dol_print_phone($this->office_fax, $this->country_code, $this->id, 0, '', ' ', 'fax');
|
||||
}
|
||||
if ($this->user_mobile) {
|
||||
$phonelist[] = dol_print_phone($this->user_mobile, $this->country_code, $this->id, 0, '', ' ', 'mobile');
|
||||
}
|
||||
$label .= '<br><b>'.$langs->trans('Phone').':</b> '.implode(' ', $phonelist);
|
||||
}
|
||||
if (!empty($this->admin)) {
|
||||
$label .= '<br><b>'.$langs->trans("Administrator").'</b>: '.yn($this->admin);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user