aboutsummaryrefslogtreecommitdiffstats
path: root/apps/encryption/lib
diff options
context:
space:
mode:
authorHamid Dehnavi <hamid.dev.pro@gmail.com>2023-07-07 13:50:21 +0330
committerHamid Dehnavi <hamid.dev.pro@gmail.com>2023-09-28 12:18:41 +0330
commitd64bbc8bd3a6a272dd5c550916a6b80222f19e13 (patch)
tree1b56193c101e936e79478448c41af9b1f87521f5 /apps/encryption/lib
parent456aea80420d7d4fc8dc853d9953687ed3f89ace (diff)
downloadnextcloud-server-d64bbc8bd3a6a272dd5c550916a6b80222f19e13.tar.gz
nextcloud-server-d64bbc8bd3a6a272dd5c550916a6b80222f19e13.zip
Convert isset ternary to null coalescing operator
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
Diffstat (limited to 'apps/encryption/lib')
-rw-r--r--apps/encryption/lib/Hooks/UserHooks.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/encryption/lib/Hooks/UserHooks.php b/apps/encryption/lib/Hooks/UserHooks.php
index e9efc4c35c1..27eba0ad781 100644
--- a/apps/encryption/lib/Hooks/UserHooks.php
+++ b/apps/encryption/lib/Hooks/UserHooks.php
@@ -216,7 +216,7 @@ class UserHooks implements IHook {
} else { // admin changed the password for a different user, create new keys and re-encrypt file keys
$userId = $params['uid'];
$this->initMountPoints($userId);
- $recoveryPassword = isset($params['recoveryPassword']) ? $params['recoveryPassword'] : null;
+ $recoveryPassword = $params['recoveryPassword'] ?? null;
$recoveryKeyId = $this->keyManager->getRecoveryKeyId();
$recoveryKey = $this->keyManager->getSystemPrivateKey($recoveryKeyId);