Index: trunk/phase3/includes/logging/LogEntry.php |
— | — | @@ -217,9 +217,13 @@ |
218 | 218 | |
219 | 219 | public function getPerformer() { |
220 | 220 | $userId = (int) $this->row->log_user; |
221 | | - if ( $userId !== 0 ) { |
222 | | - return User::newFromRow( $this->row ); |
223 | | - } else { |
| 221 | + if ( $userId !== 0 ) { // logged-in users |
| 222 | + if ( isset( $this->row->user_name ) ) { |
| 223 | + return User::newFromRow( $this->row ); |
| 224 | + } else { |
| 225 | + return User::newFromId( $userId ); |
| 226 | + } |
| 227 | + } else { // IP users |
224 | 228 | $userText = $this->row->log_user_text; |
225 | 229 | return User::newFromName( $userText, false ); |
226 | 230 | } |