Skip to content

Commit

Permalink
Fix: Avoid ldap error
Browse files Browse the repository at this point in the history
  • Loading branch information
hregis committed Nov 10, 2017
1 parent beacf42 commit 5682965
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/adherents/class/adherent.class.php
Expand Up @@ -1969,7 +1969,7 @@ function _load_ldap_info()
$this->fullname=$this->getFullName($langs);

// For avoid ldap error when firstname and lastname are empty
if ($this->morphy == 'mor' && empty($this->fullname)) {
if ($this->morphy == 'mor' && (empty($this->fullname) || $this->fullname == $this->societe)) {
$this->fullname = $this->societe;
$this->lastname = $this->societe;
}
Expand Down

0 comments on commit 5682965

Please sign in to comment.