aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
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/items.php
parentd3ead4e690787879cff9aa4e34df27c96296f45c (diff)
downloadvolse-hubzilla-fbb01666906ba4f909dc9eac98aa3ca6a936b99e.tar.gz
volse-hubzilla-fbb01666906ba4f909dc9eac98aa3ca6a936b99e.tar.bz2
volse-hubzilla-fbb01666906ba4f909dc9eac98aa3ca6a936b99e.zip
lint
Diffstat (limited to 'include/items.php')
-rw-r--r--include/items.php2
1 files changed, 1 insertions, 1 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'];
}