aboutsummaryrefslogtreecommitdiffstats
path: root/include/zot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-10-13 21:01:51 -0700
committerfriendica <info@friendica.com>2014-10-13 21:01:51 -0700
commit19e1b95837f46bb2ed46978f5b96a3c4fe150c2a (patch)
tree261f131a3cc7ff510d13145353a03804b9413976 /include/zot.php
parentbd4dd85fbbe7bb0bc36b8a7d51e991ef3b5770fa (diff)
downloadvolse-hubzilla-19e1b95837f46bb2ed46978f5b96a3c4fe150c2a.tar.gz
volse-hubzilla-19e1b95837f46bb2ed46978f5b96a3c4fe150c2a.tar.bz2
volse-hubzilla-19e1b95837f46bb2ed46978f5b96a3c4fe150c2a.zip
don't use cached data
Diffstat (limited to 'include/zot.php')
-rw-r--r--include/zot.php2
1 files changed, 2 insertions, 0 deletions
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;