diff --git a/module/bug/view/view.html.php b/module/bug/view/view.html.php
index 8bbc37635e..7d8ddc8c5d 100644
--- a/module/bug/view/view.html.php
+++ b/module/bug/view/view.html.php
@@ -440,9 +440,9 @@
$canViewRevision = common::hasPriv('repo', 'revision');
foreach($linkCommits as $commit)
{
- $revision = substr($commit->revision, 0, 10);
- $title = $revision . ' ' . $commit->comment;
- echo "
" . ($canViewRevision ? html::a($this->createLink('repo', 'revision', "repoID={$commit->repo}&objectID=0&revision={$commit->revision}"), $revision) . " $commit->comment" : $title) . '
';
+ $revision = substr($commit->revision, 0, 10);
+ $commitTitle = $revision . ' ' . $commit->comment;
+ echo "" . ($canViewRevision ? html::a($this->createLink('repo', 'revision', "repoID={$commit->repo}&objectID=0&revision={$commit->revision}"), $revision) . " $commit->comment" : $commitTitle) . '
';
}
?>