[fix] PHP notice error

This commit is contained in:
Knah Tsaeb 2013-08-20 15:01:45 +02:00
parent 588c4e4be4
commit 64f4f387a0

View file

@ -948,7 +948,11 @@ function showRSS()
// If user wants permalinks first, put the final link in description // If user wants permalinks first, put the final link in description
if ($usepermalinks===true) $descriptionlink = '(<a href="'.$absurl.'">Link</a>)'; if ($usepermalinks===true) $descriptionlink = '(<a href="'.$absurl.'">Link</a>)';
if (strlen($link['description'])>0) $descriptionlink = '<br>'.$descriptionlink; if (strlen($link['description'])>0) $descriptionlink = '<br>'.$descriptionlink;
$via = '<br>via '.text2clickable(htmlspecialchars($link['via'])); if(!empty($link['via'])){
$via = '<br>via '.text2clickable(htmlspecialchars($link['via']));
} else {
$via = '';
}
echo '<description><![CDATA['.nl2br(keepMultipleSpaces(text2clickable(htmlspecialchars($link['description'])))).$via.$descriptionlink.']]></description>'."\n</item>\n"; echo '<description><![CDATA['.nl2br(keepMultipleSpaces(text2clickable(htmlspecialchars($link['description'])))).$via.$descriptionlink.']]></description>'."\n</item>\n";
$i++; $i++;
} }