Index: branches/wmf/1.17wmf1/extensions/CodeReview/backend/CodeRevision.php |
— | — | @@ -334,8 +334,13 @@ |
335 | 335 | // Get committer wiki user name, or repo name at least |
336 | 336 | $commitAuthor = $this->getWikiUser(); |
337 | 337 | |
338 | | - $commitAuthorId = $commitAuthor->getId(); |
339 | | - $committer = $commitAuthor ? $commitAuthor->getName() : htmlspecialchars( $this->mAuthor ); |
| 338 | + if ( $commitAuthor ) { |
| 339 | + $committer = $commitAuthor->getName(); |
| 340 | + $commitAuthorId = $commitAuthor->getId(); |
| 341 | + } else { |
| 342 | + $committer = htmlspecialchars( $this->mAuthor ); |
| 343 | + $commitAuthorId = 0; |
| 344 | + } |
340 | 345 | |
341 | 346 | // Get the authors of these revisions |
342 | 347 | $res = $dbw->select( 'code_rev', |