[index] Fix error when no items defined (#983)
Fix PHP Notice: Undefined offset: 0. Error below triggers when there are no items: PHP Notice: Undefined offset: 0 in C:\php\rss-bridge\index.php on line 249
This commit is contained in:
parent
719320e1a4
commit
3e45643418
1 changed files with 1 additions and 1 deletions
|
@ -246,7 +246,7 @@ try {
|
|||
|
||||
// Transform "legacy" items to FeedItems if necessary.
|
||||
// Remove this code when support for "legacy" items ends!
|
||||
if(is_array($items[0])) {
|
||||
if(isset($items[0]) && is_array($items[0])) {
|
||||
$feedItems = array();
|
||||
|
||||
foreach($items as $item) {
|
||||
|
|
Loading…
Reference in a new issue