diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-09-22 18:40:03 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-09-22 18:40:03 -0700 |
commit | 15feeb7bfe324bbe87e689ee7920a6be20cc204c (patch) | |
tree | f920e957c06db4bcf03df3f5b5dc23e687005eb8 /include/zot.php | |
parent | 34291d593845c1ec4c2d68dcc4662b020db33f32 (diff) | |
download | volse-hubzilla-15feeb7bfe324bbe87e689ee7920a6be20cc204c.tar.gz volse-hubzilla-15feeb7bfe324bbe87e689ee7920a6be20cc204c.tar.bz2 volse-hubzilla-15feeb7bfe324bbe87e689ee7920a6be20cc204c.zip |
inverted logic syncing deleted hublocs
Diffstat (limited to 'include/zot.php')
-rw-r--r-- | include/zot.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/zot.php b/include/zot.php index 0b1aaa989..236b55522 100644 --- a/include/zot.php +++ b/include/zot.php @@ -2363,7 +2363,7 @@ function sync_locations($sender, $arr, $absolute = false) { foreach($xisting as $x) { if(! array_key_exists('updated',$x)) { logger('sync_locations: deleting unreferenced hub location ' . $x['hubloc_url']); - $r = q("update hubloc set hubloc_flags = (hubloc_flags & ~%d), hubloc_updated = '%s' where hubloc_id = %d", + $r = q("update hubloc set hubloc_flags = (hubloc_flags | %d), hubloc_updated = '%s' where hubloc_id = %d", intval(HUBLOC_FLAGS_DELETED), dbesc(datetime_convert()), intval($x['hubloc_id']) |