From 156cf592eeeaf1ef2fe446655b1f28debab7814c Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 26 Jun 2013 14:28:11 -0700 Subject: more nomadic clone sync --- include/Contact.php | 3 +++ include/settings.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/Contact.php b/include/Contact.php index b2d459ca4..245682454 100644 --- a/include/Contact.php +++ b/include/Contact.php @@ -76,6 +76,9 @@ function abook_toggle_flag($abook,$flag) { intval($abook['abook_id']), intval($abook['abook_channel']) ); + $a = get_app(); + if($a->data['abook']) + $a->data['abook']['abook_flags'] = $a->data['abook']['abook_flags'] ^ $flag; return $r; } diff --git a/include/settings.php b/include/settings.php index 9266932f2..94cb6f65b 100644 --- a/include/settings.php +++ b/include/settings.php @@ -65,7 +65,7 @@ function build_sync_packet($packet = null) { dbesc(datetime_convert()), dbesc(datetime_convert()), dbesc($n), - dbesc($info) + dbesc(json_encode($info)) ); proc_run('php','include/deliver.php',$hash); -- cgit v1.2.3