From b86277b0ff7aa7ea5e04a646b628785fc31f0c3e Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 11 Mar 2013 16:13:09 -0700 Subject: dangerous typo that removes all your hublocs, fix reshare formatting --- include/zot.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/zot.php') 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']) ); -- cgit v1.2.3