summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2011-01-29 11:31:23 +0000
committerthomascube <thomas@roundcube.net>2011-01-29 11:31:23 +0000
commit6039aae3878aa5880415290cbc41af4bac4fdcb5 (patch)
treeaf67fca02fb859cb6863127d97c0a71680f69bb6 /program/steps
parentcf2da2f9aacd1b13ad9019f44a3f1edd824cd015 (diff)
Add groups support for LDAP address books, contributed by Andreas Dick
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/addressbook/save.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/addressbook/save.inc b/program/steps/addressbook/save.inc
index 5d8b53159..4eb24fe82 100644
--- a/program/steps/addressbook/save.inc
+++ b/program/steps/addressbook/save.inc
@@ -242,7 +242,7 @@ else {
if ($insert_id) {
// add new contact to the specified group
- if ($CONTACTS->group_id) {
+ if ($CONTACTS->groups && $CONTACTS->group_id) {
$plugin = $RCMAIL->plugins->exec_hook('group_addmembers', array('group_id' => $CONTACTS->group_id, 'ids' => $insert_id, 'source' => $source));
if (!$plugin['abort']) {