connection clone issues

This commit is contained in:
friendica 2015-01-10 14:59:10 -08:00
parent 8c4eb839f9
commit 10102ac2ac
2 changed files with 5 additions and 2 deletions

View file

@ -2368,6 +2368,9 @@ function build_sync_packet($uid = 0, $packet = null, $groups_changed = false) {
logger('build_sync_packet');
if($packet)
logger('packet: ' . print_r($packet,true),LOGGER_DATA);
if(! $uid)
$uid = local_user();

View file

@ -241,7 +241,7 @@ function connedit_clone(&$a) {
unset($clone['abook_account']);
unset($clone['abook_channel']);
build_sync_packet(0 /* use the current local_user */, array(array('abook' => array($clone))));
build_sync_packet(0 /* use the current local_user */, array('abook' => array($clone)));
}
/* @brief Generate content of connection edit page
@ -402,7 +402,7 @@ function connedit_content(&$a) {
contact_remove(local_user(), $orig_record[0]['abook_id']);
build_sync_packet(0 /* use the current local_user */,
array(array('abook' => array(
array('abook' => array(array(
'abook_xchan' => $orig_record[0]['abook_xchan'],
'entry_deleted' => true))
)