diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-07-16 18:07:23 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-07-16 18:07:23 -0700 |
commit | 4299ae65a4ec406bbd932e0948197c5127a57b3b (patch) | |
tree | 9d3acd1a5705fe01ffcc7648c60e955d67d8ed47 | |
parent | c3dbacfb88e1fec97496592807a310f71dd6b156 (diff) | |
download | volse-hubzilla-4299ae65a4ec406bbd932e0948197c5127a57b3b.tar.gz volse-hubzilla-4299ae65a4ec406bbd932e0948197c5127a57b3b.tar.bz2 volse-hubzilla-4299ae65a4ec406bbd932e0948197c5127a57b3b.zip |
abook clone sync - change logic to also unset existing cross-project flags besides just setting them
-rw-r--r-- | include/zot.php | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/include/zot.php b/include/zot.php index e7ab70fc4..b8954f2ad 100644 --- a/include/zot.php +++ b/include/zot.php @@ -2902,22 +2902,14 @@ function process_channel_sync_delivery($sender, $arr, $deliveries) { if(! array_key_exists('abook_blocked',$abook)) { // convert from redmatrix - if($abook['abook_flags'] & 0x0001) - $abook['abook_blocked'] = 1; - if($abook['abook_flags'] & 0x0002) - $abook['abook_ignored'] = 1; - if($abook['abook_flags'] & 0x0004) - $abook['abook_hidden'] = 1; - if($abook['abook_flags'] & 0x0008) - $abook['abook_archived'] = 1; - if($abook['abook_flags'] & 0x0010) - $abook['abook_pending'] = 1; - if($abook['abook_flags'] & 0x0020) - $abook['abook_unconnected'] = 1; - if($abook['abook_flags'] & 0x0080) - $abook['abook_self'] = 1; - if($abook['abook_flags'] & 0x0100) - $abook['abook_feed'] = 1; + $abook['abook_blocked'] = (($abook['abook_flags'] & 0x0001) ? 1 : 0); + $abook['abook_ignored'] = (($abook['abook_flags'] & 0x0002) ? 1 : 0); + $abook['abook_hidden'] = (($abook['abook_flags'] & 0x0004) ? 1 : 0); + $abook['abook_archived'] = (($abook['abook_flags'] & 0x0008) ? 1 : 0); + $abook['abook_pending'] = (($abook['abook_flags'] & 0x0010) ? 1 : 0); + $abook['abook_unconnected'] = (($abook['abook_flags'] & 0x0020) ? 1 : 0); + $abook['abook_self'] = (($abook['abook_flags'] & 0x0080) ? 1 : 0); + $abook['abook_feed'] = (($abook['abook_flags'] & 0x0100) ? 1 : 0); } $clean = array(); |