summaryrefslogtreecommitdiffstats
path: root/settings/Controller
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2016-04-25 16:30:06 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-11-21 11:29:50 +0100
commit1700e3dcccc4edbb48f583b055ba3fed539a8b42 (patch)
tree348ac6159040010d4d85e63aa1548e18107c05a0 /settings/Controller
parent445a254c1e84444134b90b4c874cbf32119e2df1 (diff)
downloadnextcloud-server-1700e3dcccc4edbb48f583b055ba3fed539a8b42.tar.gz
nextcloud-server-1700e3dcccc4edbb48f583b055ba3fed539a8b42.zip
allow multiple values for phone, website, address and email
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'settings/Controller')
-rw-r--r--settings/Controller/UsersController.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/settings/Controller/UsersController.php b/settings/Controller/UsersController.php
index 35344234330..6791475ce52 100644
--- a/settings/Controller/UsersController.php
+++ b/settings/Controller/UsersController.php
@@ -534,10 +534,10 @@ class UsersController extends Controller {
$data = [
'avatar' => ['scope' => $avatarScope],
'displayName' => ['value' => $displayname, 'scope' => $displaynameScope],
- 'email' => ['value' => $email, 'scope' => $emailScope],
- 'website' => ['value' => $website, 'scope' => $websiteScope],
- 'address' => ['value' => $address, 'scope' => $addressScope],
- 'phone' => ['value' => $phone, 'scope' => $phoneScope]
+ 'email' => [['value' => $email, 'scope' => $emailScope]],
+ 'website' => [['value' => $website, 'scope' => $websiteScope]],
+ 'address' => [['value' => $address, 'scope' => $addressScope]],
+ 'phone' => [['value' => $phone, 'scope' => $phoneScope]]
];
$this->accountManager->updateUser($userId, $data);