diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-03-25 20:42:38 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-03-26 11:16:23 +0200 |
commit | 74f0e3723327fbfb1cd7a96865019ff791b41593 (patch) | |
tree | 76df4b982e0c8689f0a74528299be8822263f2e6 /lib/private/Encryption | |
parent | 7ebd96416ca9150a4d524547a18b5fce269016ca (diff) | |
download | nextcloud-server-74f0e3723327fbfb1cd7a96865019ff791b41593.tar.gz nextcloud-server-74f0e3723327fbfb1cd7a96865019ff791b41593.zip |
Remove deprecated \OCP\User::userExists
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Encryption')
-rw-r--r-- | lib/private/Encryption/Util.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/private/Encryption/Util.php b/lib/private/Encryption/Util.php index 1f5a511c39b..ddd19ac6345 100644 --- a/lib/private/Encryption/Util.php +++ b/lib/private/Encryption/Util.php @@ -35,6 +35,7 @@ use OC\Files\Filesystem; use OC\Files\View; use OCP\Encryption\IEncryptionModule; use OCP\IConfig; +use OCP\IUser; class Util { @@ -274,9 +275,9 @@ class Util { $result = []; if (in_array('all', $users)) { $users = $this->userManager->search('', null, null); - foreach ($users as $user) { - $result[] = $user->getUID(); - } + $result = array_map(function(IUser $user) { + return $user->getUID(); + }, $users); } else { $result = array_merge($result, $users); |