CleanUp: removed redundant condition if block

Signed-off-by: Marc Hefter <marchefter@gmail.com>
This commit is contained in:
Marc Hefter 2023-02-17 10:50:46 +01:00 committed by Marc Hefter
parent 651273808f
commit 3020290751
No known key found for this signature in database
GPG key ID: AC45BA6A849F8610

View file

@ -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];