Browse Source

check for key first

pull/87/head v1.8.2
Aaron Parecki 5 years ago
parent
commit
5b779feb8a
No known key found for this signature in database GPG Key ID: 276C2817346D6056
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      lib/XRay/Formats/JSONFeed.php

+ 2
- 1
lib/XRay/Formats/JSONFeed.php View File

@ -41,7 +41,8 @@ class JSONFeed extends Format {
];
// First use the feed title/icon/url as author info
$entry['author']['url'] = $feed['home_page_url'];
if(isset($feed['home_page_url']))
$entry['author']['url'] = $feed['home_page_url'];
if(isset($feed['title']))
$entry['author']['name'] = $feed['title'];
if(isset($feed['icon']))

Loading…
Cancel
Save