From 64f4f387a03a0944d41fedaea931a30f12e71043 Mon Sep 17 00:00:00 2001 From: Knah Tsaeb Date: Tue, 20 Aug 2013 15:01:45 +0200 Subject: [PATCH] [fix] PHP notice error --- index.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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))