Avoid array out of bounds
Avoid array out of bounds

--- a/include/display.git_rss.php
+++ b/include/display.git_rss.php
@@ -28,7 +28,7 @@
 		$tpl->assign("self",script_url());
 
 		$commitlines = array();
-		for ($i = 0; $i <= count($revlist); $i++) {
+		for ($i = 0; $i < count($revlist); $i++) {
 			$commit = $revlist[$i];
 			$co = git_read_commit($projectroot . $project, $commit);
 			if (($i >= 20) && ((time() - $co['committer_epoch']) > 48*60*60))

comments