diff options
author | redmatrix <git@macgirvin.com> | 2016-07-12 20:50:27 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-07-12 20:50:27 -0700 |
commit | 6424bac47ce7f81991d23d2407cbb4c08dbfdf69 (patch) | |
tree | 5a664f58749fe45923f77881310cdd295859afb5 /include/zot.php | |
parent | a01baab4f0dc1654dfe2d2cc6fc78e5c3c8d9f4e (diff) | |
parent | bdd7d24ac1ccf8f7c5b8939cf23a6a156da959c1 (diff) | |
download | volse-hubzilla-6424bac47ce7f81991d23d2407cbb4c08dbfdf69.tar.gz volse-hubzilla-6424bac47ce7f81991d23d2407cbb4c08dbfdf69.tar.bz2 volse-hubzilla-6424bac47ce7f81991d23d2407cbb4c08dbfdf69.zip |
Merge branch 'dev' into perms
Diffstat (limited to 'include/zot.php')
-rw-r--r-- | include/zot.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/zot.php b/include/zot.php index f0e4d31db..0bf689742 100644 --- a/include/zot.php +++ b/include/zot.php @@ -2952,7 +2952,12 @@ function build_sync_packet($uid = 0, $packet = null, $groups_changed = false) { if($x['hubloc_host'] == App::get_hostname()) continue; - $synchubs[] = $x; + $y = q("select site_dead from site where site_url = '%s' limit 1", + dbesc($x['hubloc_url']) + ); + + if((! $y) || ($y[0]['site_dead'] == 0)) + $synchubs[] = $x; } if(! $synchubs) |