mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 05:15:16 +00:00
inverted logic syncing deleted hublocs
This commit is contained in:
parent
34291d5938
commit
15feeb7bfe
1 changed files with 1 additions and 1 deletions
|
@ -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'])
|
||||
|
|
Loading…
Reference in a new issue