fix for warning about not existing rss pagelink
--- a/browse/recent.php
+++ b/browse/recent.php
@@ -22,7 +22,14 @@
// ----------------------------------------------------------------------
if(!defined("_CHARSET")) exit( );
-$output .= "<div id=\"pagetitle\">".($recentdays ? _RECENTSTORIES : _MOSTRECENT)." ".$pagelinks['rss']['link']."</div>";
+if (isset($pagelinks['rss']))
+{
+ $output .= "<div id=\"pagetitle\">" . ($recentdays ? _RECENTSTORIES : _MOSTRECENT) . " " . $pagelinks['rss']['link'] . "</div>";
+}
+else {
+ $output .= "<div id=\"pagetitle\">" . ($recentdays ? _RECENTSTORIES : _MOSTRECENT);
+}
+
$update_date = time() - $recentdays * 24 * 60 * 60;
$countquery .= ($recentdays ? " AND updated > '" . $update_date . "'" : "");
--- a/includes/pagesetup.php
+++ b/includes/pagesetup.php
@@ -90,8 +90,11 @@
$tpl->assignGlobal("page_id", $current);
$tpl->assignGlobal("basedir", _BASEDIR);
$tpl->assignGlobal("skindir", $skindir);
-$tpl->assignGlobal("rss", "<a href='"._BASEDIR.$pagelinks['rss']['url']."'><img src='"._BASEDIR."images/xml.gif' alt='RSS' title = 'RSS' border='0'></a>");
-if(isset($pagelinks['rss'])) $tpl->assignGlobal("columns", $displaycolumns);
+if(isset($pagelinks['rss'])) {
+ $tpl->assignGlobal("rss", "<a href='" . _BASEDIR . $pagelinks['rss']['url'] . "'><img src='" . _BASEDIR . "images/xml.gif' alt='RSS' title = 'RSS' border='0'></a>");
+ if (isset($pagelinks['rss'])) $tpl->assignGlobal("columns", $displaycolumns);
+}
+
if($action != "printable") {
$tpl->newBlock("footer");
$copy = dbquery("SELECT message_text FROM ".TABLEPREFIX."fanfiction_messages WHERE message_name = 'copyright' LIMIT 1");
@@ -112,3 +115,4 @@
$tpl->gotoBlock( "_ROOT" );
?>
+