aboutsummaryrefslogtreecommitdiffstats
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
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).
-rw-r--r--include/hubloc.php2
-rw-r--r--version.inc2
2 files changed, 2 insertions, 2 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'])
diff --git a/version.inc b/version.inc
index aa6196594..fbb89e197 100644
--- a/version.inc
+++ b/version.inc
@@ -1 +1 @@
-2014-12-12.887
+2014-12-14.889