diff options
author | Joas Schilling <coding@schilljs.com> | 2022-01-11 10:15:06 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-01-11 10:15:06 +0100 |
commit | 3c845709019dce47697b690dc55b111a144e250c (patch) | |
tree | f7697ccf292e1c3f280abfac1ff2c9fa57afa857 /lib/private/Accounts/AccountProperty.php | |
parent | 7484abb6c07f2296abc2040ecd747ddf1d65e98e (diff) | |
download | nextcloud-server-3c845709019dce47697b690dc55b111a144e250c.tar.gz nextcloud-server-3c845709019dce47697b690dc55b111a144e250c.zip |
Fix undefined/unset scope in account properties
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Accounts/AccountProperty.php')
-rw-r--r-- | lib/private/Accounts/AccountProperty.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/Accounts/AccountProperty.php b/lib/private/Accounts/AccountProperty.php index 4b7f2b0c04c..896dfd247b5 100644 --- a/lib/private/Accounts/AccountProperty.php +++ b/lib/private/Accounts/AccountProperty.php @@ -152,6 +152,7 @@ class AccountProperty implements IAccountProperty { switch ($scope) { case IAccountManager::VISIBILITY_PRIVATE: + case '': return IAccountManager::SCOPE_LOCAL; case IAccountManager::VISIBILITY_CONTACTS_ONLY: return IAccountManager::SCOPE_FEDERATED; |