diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2021-09-01 15:41:02 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2021-09-10 13:22:27 +0200 |
commit | 0571d41df5aee3ccbfeb1ce573711e7f5add4b61 (patch) | |
tree | 43365830db5c845e33569564870dcdc874e5e111 /core | |
parent | 88fc177e2672d3fba5451e351967301f42cf3028 (diff) | |
download | nextcloud-server-0571d41df5aee3ccbfeb1ce573711e7f5add4b61.tar.gz nextcloud-server-0571d41df5aee3ccbfeb1ce573711e7f5add4b61.zip |
use specific email getter where necessary
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'core')
-rw-r--r-- | core/Command/User/Info.php | 2 | ||||
-rw-r--r-- | core/Command/User/ListCommand.php | 2 |
2 files changed, 2 insertions, 2 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, diff --git a/core/Command/User/ListCommand.php b/core/Command/User/ListCommand.php index 3a2708d4da2..20422afbf9d 100644 --- a/core/Command/User/ListCommand.php +++ b/core/Command/User/ListCommand.php @@ -104,7 +104,7 @@ class ListCommand extends Base { return [ '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, |