mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
CleanUp: removed redundant condition if block
Signed-off-by: Marc Hefter <marchefter@gmail.com>
This commit is contained in:
parent
651273808f
commit
3020290751
1 changed files with 1 additions and 4 deletions
|
|
@ -604,10 +604,7 @@ class User {
|
|||
if ($this->wasRefreshed($property)) {
|
||||
return;
|
||||
}
|
||||
if ($valueFromLDAP !== null) {
|
||||
//$propertyValue = (string)$valueFromLDAP;
|
||||
$propertyValue = [$valueFromLDAP];
|
||||
}
|
||||
$propertyValue = [$valueFromLDAP];
|
||||
$this->logger->debug('user profile data ('.$profileProperty.') from LDAP '.$this->dn.' ='.((string)$valueFromLDAP), ['app' => 'user_ldap']);
|
||||
if ($propertyValue && isset($propertyValue[0])) {
|
||||
$value = $propertyValue[0];
|
||||
|
|
|
|||
Loading…
Reference in a new issue