diff --git a/index.php b/index.php index 7d75b82..11696a2 100644 --- a/index.php +++ b/index.php @@ -948,7 +948,11 @@ function showRSS() // If user wants permalinks first, put the final link in description if ($usepermalinks===true) $descriptionlink = '(Link)'; if (strlen($link['description'])>0) $descriptionlink = '
'.$descriptionlink; - $via = '
via '.text2clickable(htmlspecialchars($link['via'])); + if(!empty($link['via'])){ + $via = '
via '.text2clickable(htmlspecialchars($link['via'])); + } else { + $via = ''; + } echo ''."\n\n"; $i++; } @@ -1568,7 +1572,7 @@ function renderPage() { // Look for charset in html header. preg_match('##Usi', $data, $meta); - + // If found, extract encoding. if (!empty($meta[0])) { @@ -1578,7 +1582,7 @@ function renderPage() $html_charset = (!empty($enc[1])) ? strtolower($enc[1]) : 'utf-8'; } else { $html_charset = 'utf-8'; } - + // Extract title $title = html_extract_title($data); if (!empty($title))