Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/Repository/TopEditsRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,11 @@ private function queryTopEditsPage(
}

$userId = $user->getId( $page->getProject() );
if ( $userId === null ) {
$userId = "";
} else {
$userId = "$userId AS user_id,";
}
$username = $this->getProjectsConnection( $project )->quote( $user->getUsername() );

// IP range handling.
Expand All @@ -428,7 +433,7 @@ private function queryTopEditsPage(
revs.rev_minor_edit AS minor,
revs.rev_len AS length,
(CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS length_change,
$userId AS user_id,
$userId
$username AS username,
comments.comment_text AS `comment`
$childSelect
Expand Down
Loading