summaryrefslogtreecommitdiffstats
path: root/lib/api/kolab_api_service_group.php
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-03-31 11:10:06 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-03-31 11:10:06 +0200
commit4884ed6a5424034daff81dad0b09234a7303baed (patch)
tree3fceeb2f10e365ff08b530a5602fc624b9ec9b6d /lib/api/kolab_api_service_group.php
parenta228de1f80379cc29b58bf2673fd4e3d56e953cd (diff)
downloadwebadmin-4884ed6a5424034daff81dad0b09234a7303baed.tar.gz
Rename function user_attributes to get_attributes so it can sensibly be used for users, groups and other objects
Make sure the values in ldap modifications arrays are arrays
Diffstat (limited to 'lib/api/kolab_api_service_group.php')
-rw-r--r--lib/api/kolab_api_service_group.php4
1 files changed, 2 insertions, 2 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);
}