summaryrefslogtreecommitdiffstats
path: root/lib/api
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/kolab_api_service_group.php4
-rw-r--r--lib/api/kolab_api_service_user.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/api/kolab_api_service_group.php b/lib/api/kolab_api_service_group.php
index 329521e..d2103fa 100644
--- a/lib/api/kolab_api_service_group.php
+++ b/lib/api/kolab_api_service_group.php
@@ -199,7 +199,7 @@ class kolab_api_service_group extends kolab_api_service
if (array_key_exists($_group_attr, $group_attributes)) {
if (!($group_attributes[$_group_attr] === $_group_value)) {
console("Attribute $_group_attr changed from", $_group_value, "to", $group_attributes[$_group_attr]);
- $mod_array['replace'][$_group_attr] = $_group_value;
+ $mod_array['replace'][$_group_attr] = (array)($_group_value);
}
} else {
// TODO: Since we're not shipping the entire object back and forth, and only post
@@ -281,7 +281,7 @@ class kolab_api_service_group extends kolab_api_service
}
if (!empty($attrs)) {
- $attrs = $auth->user_attributes($result['entrydn'], $attrs);
+ $attrs = $auth->get_attributes($result['entrydn'], $attrs);
if (!empty($attrs)) {
$result = array_merge($result, $attrs);
}
diff --git a/lib/api/kolab_api_service_user.php b/lib/api/kolab_api_service_user.php
index 111456e..5810732 100644
--- a/lib/api/kolab_api_service_user.php
+++ b/lib/api/kolab_api_service_user.php
@@ -182,7 +182,7 @@ class kolab_api_service_user extends kolab_api_service
}
if (!empty($attrs)) {
- $attrs = $auth->user_attributes($result['entrydn'], $attrs);
+ $attrs = $auth->get_attributes($result['entrydn'], $attrs);
if (!empty($attrs)) {
$result = array_merge($result, $attrs);
}