add abook_account to cloned abook records, was missing

This commit is contained in:
redmatrix 2016-01-26 15:38:56 -08:00
parent 3494fddd7c
commit 535a54040f

View File

@ -3186,8 +3186,9 @@ function process_channel_sync_delivery($sender, $arr, $deliveries) {
logger('process_channel_sync_delivery: total_feeds service class limit exceeded'); logger('process_channel_sync_delivery: total_feeds service class limit exceeded');
continue; continue;
} }
q("insert into abook ( abook_xchan, abook_channel ) values ('%s', %d ) ", q("insert into abook ( abook_xchan, abook_account, abook_channel ) values ('%s', %d, %d ) ",
dbesc($clean['abook_xchan']), dbesc($clean['abook_xchan']),
intval($channel['channel_account_id']),
intval($channel['channel_id']) intval($channel['channel_id'])
); );
$total_friends ++; $total_friends ++;