From 3e45643418e61dea4f1721b345909afa6bb9da1e Mon Sep 17 00:00:00 2001 From: triatic <42704418+triatic@users.noreply.github.com> Date: Fri, 28 Dec 2018 15:25:56 +0000 Subject: [PATCH] [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 --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index bf5c32db..a95302a0 100644 --- a/index.php +++ b/index.php @@ -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) {