Skip to content

Commit

Permalink
Fix for undefined variable
Browse files Browse the repository at this point in the history
  • Loading branch information
eSilverStrike committed Mar 1, 2018
1 parent f9aa786 commit 1811227
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion system/lib-syndication.php
Expand Up @@ -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'] = '';
}
}
}
}
Expand Down

0 comments on commit 1811227

Please sign in to comment.