aboutsummaryrefslogtreecommitdiffstats
path: root/include/hubloc.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-12-14 22:54:27 -0800
committerfriendica <info@friendica.com>2014-12-14 22:54:27 -0800
commit1780ba5e7d1571d82a6428c4907d6a264217c778 (patch)
tree3c53a5efc03376cf24c9986cdbc7013e71205a6e /include/hubloc.php
parent72474b29fc5cc4ae5ae9075ff6a6a2053fbddf6f (diff)
downloadvolse-hubzilla-1780ba5e7d1571d82a6428c4907d6a264217c778.tar.gz
volse-hubzilla-1780ba5e7d1571d82a6428c4907d6a264217c778.tar.bz2
volse-hubzilla-1780ba5e7d1571d82a6428c4907d6a264217c778.zip
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).
Diffstat (limited to 'include/hubloc.php')
-rw-r--r--include/hubloc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hubloc.php b/include/hubloc.php
index 43187fcee..b5a3d47c5 100644
--- a/include/hubloc.php
+++ b/include/hubloc.php
@@ -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'])