summaryrefslogtreecommitdiffstats
path: root/core/Command/User/Info.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/Command/User/Info.php')
-rw-r--r--core/Command/User/Info.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Command/User/Info.php b/core/Command/User/Info.php
index e6ba691a40d..347a4664bb0 100644
--- a/core/Command/User/Info.php
+++ b/core/Command/User/Info.php
@@ -75,7 +75,7 @@ class Info extends Base {
$data = [
'user_id' => $user->getUID(),
'display_name' => $user->getDisplayName(),
- 'email' => $user->getEMailAddress() ? $user->getEMailAddress() : '',
+ 'email' => (string)$user->getSystemEMailAddress(),
'cloud_id' => $user->getCloudId(),
'enabled' => $user->isEnabled(),
'groups' => $groups,