aboutsummaryrefslogtreecommitdiffstats
path: root/include/zot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-03-11 16:13:09 -0700
committerfriendica <info@friendica.com>2013-03-11 16:13:09 -0700
commitb86277b0ff7aa7ea5e04a646b628785fc31f0c3e (patch)
tree2774bc8509ea21cff7d32a47650227c9e914c46d /include/zot.php
parentbcf4592cb078b6afc3b8c65cd5832cee17a38ffc (diff)
downloadvolse-hubzilla-b86277b0ff7aa7ea5e04a646b628785fc31f0c3e.tar.gz
volse-hubzilla-b86277b0ff7aa7ea5e04a646b628785fc31f0c3e.tar.bz2
volse-hubzilla-b86277b0ff7aa7ea5e04a646b628785fc31f0c3e.zip
dangerous typo that removes all your hublocs, fix reshare formatting
Diffstat (limited to 'include/zot.php')
-rw-r--r--include/zot.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/zot.php b/include/zot.php
index e5b6ac56a..4bbf6ef25 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -520,7 +520,7 @@ function import_xchan($arr) {
}
for($x = 0; $x < count($xisting); $x ++) {
- if($xisiting[$x]['hubloc_url'] == $location['url']) {
+ if($xisting[$x]['hubloc_url'] == $location['url']) {
$xisting[$x]['updated'] = true;
}
}
@@ -567,10 +567,10 @@ function import_xchan($arr) {
}
// get rid of any hubs we have for this channel which weren't reported.
-
if($xisting) {
foreach($xisting as $x) {
if(! array_key_exists('updated',$x)) {
+ logger('import_xchan: removing unreferenced hub location ' . $x['hubloc_url');
$r = q("delete from hubloc where hubloc_id = %d limit 1",
intval($x['hubloc_id'])
);