r797 - webspace/include

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Jun 4 20:42:22 EDT 2006


Author: floam
Date: 2006-06-04 20:42:22 -0400 (Sun, 04 Jun 2006)
New Revision: 797

Modified:
   webspace/include/news.php
Log:
Fix the navigation showing up one post before it should.


Modified: webspace/include/news.php
===================================================================
--- webspace/include/news.php	2006-06-04 13:45:53 UTC (rev 796)
+++ webspace/include/news.php	2006-06-05 00:42:22 UTC (rev 797)
@@ -50,7 +50,7 @@
 		if ($show_nav)
 		{
 			echo "<p id=\"newsnav\">";
-			if ($news_item_count == $news_item_max)
+			if ($news_item_count == ($news_item_max + 1))
 				echo "<a class=\"left\" href=\"?page=news&amp;news_index=$lastid\">&larr;Backpedal</a>";
 			if ($news_index != false)
 				echo "<a class=\"right\" href=\"?page=news\">To Newest&rarr;</a>";




More information about the quake3-commits mailing list