From 1811227d86e30a1d0dee461a832f88c76fde114b Mon Sep 17 00:00:00 2001 From: Tom Homer Date: Thu, 1 Mar 2018 11:18:02 -0500 Subject: [PATCH] Fix for undefined variable --- system/lib-syndication.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/system/lib-syndication.php b/system/lib-syndication.php index 8d2496ec7..0a7d97512 100644 --- a/system/lib-syndication.php +++ b/system/lib-syndication.php @@ -497,7 +497,11 @@ function SYND_updateFeed($fid) if ($A['content_length'] != 1) { $count = count($content); for ($i = 0; $i < $count; $i++) { - $content[$i]['summary'] = ($A['content_length'] == 1) ? $content[$i]['text'] : COM_truncateHTML($content[$i]['text'], $A['content_length'], ' ...'); + if (isset($content[$i]['text'])) { + $content[$i]['summary'] = ($A['content_length'] == 1) ? $content[$i]['text'] : COM_truncateHTML($content[$i]['text'], $A['content_length'], ' ...'); + } else { + $content[$i]['summary'] = ''; + } } } }