From fbb01666906ba4f909dc9eac98aa3ca6a936b99e Mon Sep 17 00:00:00 2001 From: Friendika Date: Sun, 7 Nov 2010 21:07:47 -0800 Subject: lint --- include/items.php | 2 +- include/poller.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/items.php b/include/items.php index 483540f46..c963d9189 100644 --- a/include/items.php +++ b/include/items.php @@ -753,7 +753,7 @@ function consume_feed($xml,$importer,$contact, &$hub) { $name_updated = $elems['name'][0]['attribs'][NAMESPACE_DFRN]['updated']; $new_name = $elems['name'][0]['data']; } - if(($elems['link'][0]['attribs']['']['rel'] === 'photo') && ($elems['link'][0]['attribs'][NAMESPACE_DFRN]['updated'])) { + if((x($elems,'link')) && ($elems['link'][0]['attribs']['']['rel'] === 'photo') && ($elems['link'][0]['attribs'][NAMESPACE_DFRN]['updated'])) { $photo_timestamp = datetime_convert('UTC','UTC',$elems['link'][0]['attribs'][NAMESPACE_DFRN]['updated']); $photo_url = $elems['link'][0]['attribs']['']['href']; } diff --git a/include/poller.php b/include/poller.php index b9a4f2234..f214625a1 100644 --- a/include/poller.php +++ b/include/poller.php @@ -180,7 +180,7 @@ consume_feed($xml,$importer,$contact,$hub); if((strlen($hub)) && (($contact['rel'] == REL_BUD) || (($contact['network'] === 'stat') && (! $contact['readonly'])))) { - logger('poller: subscribing to hub(s) : ' . $hubs . ' contact name : ' . $contact['name'] . ' local user : ' . $importer['name']); + logger('poller: subscribing to hub(s) : ' . $hub . ' contact name : ' . $contact['name'] . ' local user : ' . $importer['name']); $hubs = explode(',', $hub); if(count($hubs)) { foreach($hubs as $h) { -- cgit v1.2.3