aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Accounts/Hooks.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-12-01 14:33:22 +0100
committerJoas Schilling <coding@schilljs.com>2020-12-07 14:19:37 +0100
commitda9462b482c77b71d6623be43a6aa1eda3d7cc06 (patch)
treefe78e9c97f50180140fb222a8a0c41c3fcd8ddd8 /lib/private/Accounts/Hooks.php
parenteab710c2fd6febbf946be3ce8376fb386b61ee90 (diff)
downloadnextcloud-server-da9462b482c77b71d6623be43a6aa1eda3d7cc06.tar.gz
nextcloud-server-da9462b482c77b71d6623be43a6aa1eda3d7cc06.zip
Make code strict
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Accounts/Hooks.php')
-rw-r--r--lib/private/Accounts/Hooks.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/private/Accounts/Hooks.php b/lib/private/Accounts/Hooks.php
index 82f55f5a9d1..c5e7c34deaf 100644
--- a/lib/private/Accounts/Hooks.php
+++ b/lib/private/Accounts/Hooks.php
@@ -24,6 +24,7 @@
namespace OC\Accounts;
+use OCP\Accounts\IAccountManager;
use OCP\IUser;
use Psr\Log\LoggerInterface;
@@ -61,14 +62,14 @@ class Hooks {
switch ($feature) {
case 'eMailAddress':
- if ($accountData[AccountManager::PROPERTY_EMAIL]['value'] !== $newValue) {
- $accountData[AccountManager::PROPERTY_EMAIL]['value'] = $newValue;
+ if ($accountData[IAccountManager::PROPERTY_EMAIL]['value'] !== $newValue) {
+ $accountData[IAccountManager::PROPERTY_EMAIL]['value'] = $newValue;
$accountManager->updateUser($user, $accountData);
}
break;
case 'displayName':
- if ($accountData[AccountManager::PROPERTY_DISPLAYNAME]['value'] !== $newValue) {
- $accountData[AccountManager::PROPERTY_DISPLAYNAME]['value'] = $newValue;
+ if ($accountData[IAccountManager::PROPERTY_DISPLAYNAME]['value'] !== $newValue) {
+ $accountData[IAccountManager::PROPERTY_DISPLAYNAME]['value'] = $newValue;
$accountManager->updateUser($user, $accountData);
}
break;