mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 23:03:00 -04:00
CleanUp: remove unneeded UNSET, to unclutter code
Signed-off-by: march42 <marchefter@gmail.com> Signed-off-by: Marc Hefter <marchefter@gmail.com>
This commit is contained in:
parent
240c57b94b
commit
26aa1c3580
1 changed files with 0 additions and 7 deletions
|
|
@ -255,43 +255,36 @@ class User {
|
|||
if (isset($ldapEntry[$attr])) {
|
||||
$this->updateProfile(self::USER_PREFKEY_PHONE, $ldapEntry[$attr][0], $profileScope);
|
||||
}
|
||||
unset($attr);
|
||||
//User Profile Field - website
|
||||
$attr = strtolower($this->connection->ldapAttributeWebsite);
|
||||
if (isset($ldapEntry[$attr])) {
|
||||
$this->updateProfile(self::USER_PREFKEY_WEBSITE, $ldapEntry[$attr][0], $profileScope);
|
||||
}
|
||||
unset($attr);
|
||||
//User Profile Field - Address
|
||||
$attr = strtolower($this->connection->ldapAttributeAddress);
|
||||
if (isset($ldapEntry[$attr])) {
|
||||
$this->updateProfile(self::USER_PREFKEY_ADDRESS, $ldapEntry[$attr][0], $profileScope);
|
||||
}
|
||||
unset($attr);
|
||||
//User Profile Field - Twitter
|
||||
$attr = strtolower($this->connection->ldapAttributeTwitter);
|
||||
if (isset($ldapEntry[$attr])) {
|
||||
$this->updateProfile(self::USER_PREFKEY_TWITTER, $ldapEntry[$attr][0], $profileScope);
|
||||
}
|
||||
unset($attr);
|
||||
//User Profile Field - organisation
|
||||
$attr = strtolower($this->connection->ldapAttributeOrganisation);
|
||||
if (isset($ldapEntry[$attr])) {
|
||||
$this->updateProfile(self::USER_PREFKEY_ORGANISATION, $ldapEntry[$attr][0], $profileScope);
|
||||
}
|
||||
unset($attr);
|
||||
//User Profile Field - role
|
||||
$attr = strtolower($this->connection->ldapAttributeRole);
|
||||
if (isset($ldapEntry[$attr])) {
|
||||
$this->updateProfile(self::USER_PREFKEY_ROLE, $ldapEntry[$attr][0], $profileScope);
|
||||
}
|
||||
unset($attr);
|
||||
//User Profile Field - headline
|
||||
$attr = strtolower($this->connection->ldapAttributeHeadline);
|
||||
if (isset($ldapEntry[$attr])) {
|
||||
$this->updateProfile(self::USER_PREFKEY_HEADLINE, $ldapEntry[$attr][0], $profileScope);
|
||||
}
|
||||
unset($attr);
|
||||
//User Profile Field - biography
|
||||
$attr = strtolower($this->connection->ldapAttributeBiography);
|
||||
if (isset($ldapEntry[$attr])) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue