aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMarc Hefter <hubzilla@march42.net>2023-02-17 10:50:46 +0100
committerMarc Hefter <marchefter@gmail.com>2023-04-06 08:20:27 +0200
commit30202907516a8adb2bdc63a3d9d822752a0ae512 (patch)
tree8d945a868fffdc5165a341e327eeb73eee99d64f /apps
parent651273808f7e40695539a4ac5b205b8aa46ff9ed (diff)
downloadnextcloud-server-30202907516a8adb2bdc63a3d9d822752a0ae512.tar.gz
nextcloud-server-30202907516a8adb2bdc63a3d9d822752a0ae512.zip
CleanUp: removed redundant condition if block
Signed-off-by: Marc Hefter <marchefter@gmail.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/user_ldap/lib/User/User.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/user_ldap/lib/User/User.php b/apps/user_ldap/lib/User/User.php
index cbe3101239e..f1be9b28cab 100644
--- a/apps/user_ldap/lib/User/User.php
+++ b/apps/user_ldap/lib/User/User.php
@@ -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];