Fix unset index warnings when listing log
Fix unset index warnings when listing log

--- a/include/git/Project.class.php
+++ b/include/git/Project.class.php
@@ -1215,8 +1215,10 @@
 			}
 			$parents = $commit->GetParents();
 			foreach ($parents as $parent) {
-				if (--$inc[$parent->GetHash()] == 0) {
-					$queue[] = $parent;
+				if (isset($inc[$parent->GetHash()])) {
+					if (--$inc[$parent->GetHash()] == 0) {
+						$queue[] = $parent;
+					}
 				}
 			}
 		}

comments