From 83daf51460db24356b0690aff2cfb5e639f98576 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 14 Oct 2013 21:56:56 -0700 Subject: extra logging --- include/dir_fns.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/dir_fns.php') diff --git a/include/dir_fns.php b/include/dir_fns.php index e3cd8ae77..adbcb6e3c 100644 --- a/include/dir_fns.php +++ b/include/dir_fns.php @@ -103,12 +103,15 @@ function update_directory_entry($ud) { logger('update_directory_entry: ' . print_r($ud,true), LOGGER_DATA); if($ud['ud_addr'] && (! ($ud['ud_flags'] & UPDATE_FLAGS_DELETED))) { + $success = false; $x = zot_finger($ud['ud_addr'],''); if($x['success']) { $j = json_decode($x['body'],true); + if($j) + $success = true; $y = import_xchan($j,0); } - else { + if(! $success) { $r = q("update updates set ud_last = '%s' where ud_addr = '%s'", dbesc(datetime_convert()), dbesc($ud['ud_addr']) -- cgit v1.2.3