diff --git a/module/repo/control.php b/module/repo/control.php index 1c2ad6f909..e5fbfe3772 100644 --- a/module/repo/control.php +++ b/module/repo/control.php @@ -726,6 +726,7 @@ class repo extends control /* When arrange is appose then adjust data for show them easy.*/ if($arrange == 'appose') { + foreach($diffs as $diffFile) { if(empty($diffFile->contents)) continue; diff --git a/module/repo/view/diff.html.php b/module/repo/view/diff.html.php index a3bc6c237e..63c300b63a 100644 --- a/module/repo/view/diff.html.php +++ b/module/repo/view/diff.html.php @@ -38,7 +38,7 @@ echo '/' . ' ' . html::a($this->repo->createLink('browse', "repoID=$repoID&branchID=$branchID&objectID=$objectID&path=" . $this->repo->encodePath($postPath)), trim($pathName, '/'), '', "data-app='{$app->openApp}'"); } echo '/' . ' ' . $fileName; - if($repo->SCM == 'Git') + if(strpos($repo->SCM, 'Git') !== false) { $oldRevision = $oldRevision == '^' ? "$newRevision" : $oldRevision; echo " " . substr($oldRevision, 0, 10) . " : " . substr($newRevision, 0, 10) . ' (' . $historys[$oldRevision] . ' : ' . $historys[$newRevision] . ')'; @@ -155,7 +155,7 @@