From 19e1b95837f46bb2ed46978f5b96a3c4fe150c2a Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 13 Oct 2014 21:01:51 -0700 Subject: don't use cached data --- include/zot.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/zot.php b/include/zot.php index aea8a992a..2400643a7 100644 --- a/include/zot.php +++ b/include/zot.php @@ -1843,6 +1843,8 @@ function sync_locations($sender,$arr,$absolute = false) { dbesc(datetime_convert()), intval($r[0]['hubloc_id']) ); + // make sure hubloc_change_primary() has current data + $r[0]['hubloc_flags'] = $r[0]['hubloc_flags'] ^ HUBLOC_FLAGS_PRIMARY; hubloc_change_primary($r[0]); $what .= 'primary_hub '; $changed = true; -- cgit v1.2.3