aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2010-11-07 21:07:47 -0800
committerFriendika <info@friendika.com>2010-11-07 21:07:47 -0800
commitfbb01666906ba4f909dc9eac98aa3ca6a936b99e (patch)
tree95a757b8e4f7d8f56658d61a1e4f7beb1c10f95d /include
parentd3ead4e690787879cff9aa4e34df27c96296f45c (diff)
downloadvolse-hubzilla-fbb01666906ba4f909dc9eac98aa3ca6a936b99e.tar.gz
volse-hubzilla-fbb01666906ba4f909dc9eac98aa3ca6a936b99e.tar.bz2
volse-hubzilla-fbb01666906ba4f909dc9eac98aa3ca6a936b99e.zip
lint
Diffstat (limited to 'include')
-rw-r--r--include/items.php2
-rw-r--r--include/poller.php2
2 files changed, 2 insertions, 2 deletions
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) {