Index: trunk/extensions/CodeReview/backend/CodeRevision.php |
— | — | @@ -384,8 +384,13 @@ |
385 | 385 | // Get committer wiki user name, or repo name at least |
386 | 386 | $commitAuthor = $this->getWikiUser(); |
387 | 387 | |
388 | | - $commitAuthorId = $commitAuthor->getId(); |
389 | | - $committer = $commitAuthor ? $commitAuthor->getName() : htmlspecialchars( $this->mAuthor ); |
| 388 | + if ( $commitAuthor ) { |
| 389 | + $committer = $commitAuthor->getName(); |
| 390 | + $commitAuthorId = $commitAuthor->getId(); |
| 391 | + } else { |
| 392 | + $committer = htmlspecialchars( $this->mAuthor ); |
| 393 | + $commitAuthorId = 0; |
| 394 | + } |
390 | 395 | |
391 | 396 | // Get the authors of these revisions |
392 | 397 | $res = $dbw->select( 'code_rev', |