r767 - webspace/include

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri May 5 22:24:02 EDT 2006


Author: floam
Date: 2006-05-05 22:24:02 -0400 (Fri, 05 May 2006)
New Revision: 767

Modified:
   webspace/include/news.php
Log:
fix ids so they work when they are correct


Modified: webspace/include/news.php
===================================================================
--- webspace/include/news.php	2006-05-06 02:21:23 UTC (rev 766)
+++ webspace/include/news.php	2006-05-06 02:24:02 UTC (rev 767)
@@ -12,7 +12,7 @@
 if (!empty($news_item))
 {
 	$news_item_max = 1;
-	$news_index = $news_item;
+	$news_index = $news_item + 1;
 }
 else
 {
@@ -42,7 +42,7 @@
 			}
 			echo "<h3 id=\"" . $item['id'] . "\">" . $item['title'] . " - <em>" .
 			 date("F j, Y", strtotime($item['postdate'])) . "</em></h3>\n<p>" . $item['text'] .
-			 "</p><p><a class=\"permalink\" href=\"?page=news&amp;news_item=" . ($item['id'] + 1) . "\">Permalink</a></p>";
+			 "</p><p><a class=\"permalink\" href=\"?page=news&amp;news_item=" . $item['id'] . "\">Permalink</a></p>";
 			if ($current_post++ == $news_item_count - 1)
 				$lastid = $digestItem['id'];
 			}




More information about the quake3-commits mailing list