Null page and zero page are the same thing
Null page and zero page are the same thing

--- a/include/display.git_log.php
+++ b/include/display.git_log.php
@@ -17,7 +17,7 @@
 {
 	global $tpl;
 
-	$cachekey = sha1($project) . "|" . $hash . "|" . $page;
+	$cachekey = sha1($project) . "|" . $hash . "|" . (isset($page) ? $page : 0);
 
 	if (!$tpl->is_cached('log.tpl', $cachekey)) {
 		$head = git_read_head($projectroot . $project);

--- a/include/display.git_search.php
+++ b/include/display.git_search.php
@@ -17,7 +17,7 @@
 {
 	global $tpl,$gitphp_conf;
 
-	$cachekey = sha1($project) . "|" . $hash . "|" . sha1($searchtype) . "|" . sha1($search) . "|" . $page;
+	$cachekey = sha1($project) . "|" . $hash . "|" . sha1($searchtype) . "|" . sha1($search) . "|" . (isset($page) ? $page : 0);
 
 	if (!$tpl->is_cached('search.tpl', $cachekey)) {
 

--- a/include/display.git_search_files.php
+++ b/include/display.git_search_files.php
@@ -17,7 +17,7 @@
 {
 	global $tpl,$gitphp_conf;
 
-	$cachekey = sha1($project) . "|" . $hash . "|" . "filesearch" . "|" . sha1($search) . "|" . $page;
+	$cachekey = sha1($project) . "|" . $hash . "|" . "filesearch" . "|" . sha1($search) . "|" . (isset($page) ? $page : 0);
 
 	if (!$tpl->is_cached('searchfiles.tpl', $cachekey)) {
 

--- a/include/display.git_shortlog.php
+++ b/include/display.git_shortlog.php
@@ -17,7 +17,7 @@
 {
 	global $tpl;
 
-	$cachekey = sha1($project) . "|" . $hash . "|" . $page;
+	$cachekey = sha1($project) . "|" . $hash . "|" . (isset($page) ? $page : 0);
 
 	if (!$tpl->is_cached('shortlog.tpl', $cachekey)) {
 		$head = git_read_head($projectroot . $project);

comments