import_profile_photo array warnings

This commit is contained in:
friendica 2014-09-08 16:06:15 -07:00
parent ed847a91f6
commit 715417c0e3
2 changed files with 3 additions and 3 deletions

View File

@ -918,9 +918,9 @@ function import_author_rss($x) {
dbesc(($name) ? $name : t('(Unknown)')), dbesc(($name) ? $name : t('(Unknown)')),
dbesc('rss') 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) { 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", $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",

View File

@ -1 +1 @@
2014-09-07.791 2014-09-08.792