From 715417c0e3ef51d0acf39a4a001656a07380eba4 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 8 Sep 2014 16:06:15 -0700 Subject: import_profile_photo array warnings --- include/items.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/items.php') diff --git a/include/items.php b/include/items.php index 44d4abdf8..a0a19be1f 100755 --- a/include/items.php +++ b/include/items.php @@ -918,9 +918,9 @@ function import_author_rss($x) { dbesc(($name) ? $name : t('(Unknown)')), dbesc('rss') ); - if($r) { + if($r && $x['photo']) { - $photos = import_profile_photo($x['photo'],$x['url']); + $photos = import_profile_photo($x['photo']['src'],$x['url']); if($photos) { $r = q("update xchan set xchan_photo_date = '%s', xchan_photo_l = '%s', xchan_photo_m = '%s', xchan_photo_s = '%s', xchan_photo_mimetype = '%s' where xchan_url = '%s' and xchan_network = 'rss' limit 1", -- cgit v1.2.3