diff --git a/addressbook/inc/class.addressbook_groupdav.inc.php b/addressbook/inc/class.addressbook_groupdav.inc.php index 88a0846e84..b9c749e716 100644 --- a/addressbook/inc/class.addressbook_groupdav.inc.php +++ b/addressbook/inc/class.addressbook_groupdav.inc.php @@ -573,7 +573,8 @@ class addressbook_groupdav extends groupdav_handler function save_group(array &$contact, $oldContact=null) { $data = array('list_name' => $contact['n_fn']); - foreach(array('id','carddav_name','uid') as $name) + if (!isset($contact['owner'])) $contact['owner'] = $GLOBALS['egw_info']['user']['account_id']; + foreach(array('id','carddav_name','uid','owner') as $name) { if ($name != self::$path_attr) $data['list_'.$name] = $contact[$name]; }