mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #13095 from derkostka/master
fix "app":"PHP","message":"Undefined variable: user at/principal.php#66"
This commit is contained in:
commit
f2e759b533
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ class OC_Connector_Sabre_Principal implements \Sabre\DAVACL\PrincipalBackend\Bac
|
|||
'{DAV:}displayname' => $name,
|
||||
);
|
||||
|
||||
$email= \OCP\Config::getUserValue($user, 'settings', 'email');
|
||||
$email= \OCP\Config::getUserValue($name, 'settings', 'email');
|
||||
if($email) {
|
||||
$principal['{http://sabredav.org/ns}email-address'] = $email;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue