aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-08-03 21:05:39 -0700
committerFriendika <info@friendika.com>2011-08-03 21:05:39 -0700
commitd45a66e700a62626007b05ef1b78dff8f0931210 (patch)
tree38e2d19a744e65b44184885400c0ba33984bec7a /include/items.php
parentad1e827169d9f57c02746b51c5268bdbe2cd8ac9 (diff)
downloadvolse-hubzilla-d45a66e700a62626007b05ef1b78dff8f0931210.tar.gz
volse-hubzilla-d45a66e700a62626007b05ef1b78dff8f0931210.tar.bz2
volse-hubzilla-d45a66e700a62626007b05ef1b78dff8f0931210.zip
allow custom avatar sizes - needed for Diaspora hcard/vcard
Diffstat (limited to 'include/items.php')
-rw-r--r--include/items.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php
index 8c6134f94..047dd4442 100644
--- a/include/items.php
+++ b/include/items.php
@@ -995,6 +995,11 @@ function consume_feed($xml,$importer,&$contact, &$hub, $datedir = 0, $secure_fee
require_once('library/simplepie/simplepie.inc');
+ if(! strlen($xml)) {
+ logger('consume_feed: empty input');
+ return;
+ }
+
$feed = new SimplePie();
$feed->set_raw_data($xml);
if($datedir)