don't remove obsolete hublocs that have no sitekey - it will remove all kinds of other hublocs it isn't supposed to (e.g. diaspora).

This commit is contained in:
friendica 2014-12-14 22:54:27 -08:00
parent 72474b29fc
commit 1780ba5e7d
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ function prune_hub_reinstalls() {
// allow some slop period, say 3 days - just in case this is a glitch or transient occurrence
// Then remove any hublocs pointing to the oldest entry.
if($d1 < $d2) {
if(($d1 < $d2) && ($x[0]['hubloc_sitekey'])) {
logger('prune_hub_reinstalls: removing dead hublocs at ' . $rr['site_url']);
$y = q("delete from hubloc where hubloc_sitekey = '%s'",
dbesc($x[0]['hubloc_sitekey'])

View File

@ -1 +1 @@
2014-12-12.887
2014-12-14.889