Skip to content
Snippets Groups Projects
Commit f2e759b5 authored by Morris Jobke's avatar Morris Jobke
Browse files

Merge pull request #13095 from derkostka/master

fix "app":"PHP","message":"Undefined variable: user at/principal.php#66"
parents 87762711 deedfad0
No related branches found
No related tags found
No related merge requests found
...@@ -63,7 +63,7 @@ class OC_Connector_Sabre_Principal implements \Sabre\DAVACL\PrincipalBackend\Bac ...@@ -63,7 +63,7 @@ class OC_Connector_Sabre_Principal implements \Sabre\DAVACL\PrincipalBackend\Bac
'{DAV:}displayname' => $name, '{DAV:}displayname' => $name,
); );
$email= \OCP\Config::getUserValue($user, 'settings', 'email'); $email= \OCP\Config::getUserValue($name, 'settings', 'email');
if($email) { if($email) {
$principal['{http://sabredav.org/ns}email-address'] = $email; $principal['{http://sabredav.org/ns}email-address'] = $email;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment