in LastUserLogin.body.php seems to fix the issue for me.
--- LastUserLogin.body.php.org 2016-06-14 00:07:47.000000000 +0200
+++ LastUserLogin.body.php 2016-12-06 15:43:10.672687802 +0100
@@ -103,16 +103,16 @@
$out .= '<tr>';
foreach ( $fields as $key => $value ) {
if ( $key === 'user_touched' ) {
- $lastLogin = $wgLang->timeanddate( wfTimestamp( TS_MW, $row[ $key ] ), true );
- $daysAgo = $wgLang->formatNum( round( ( time() - wfTimestamp( TS_UNIX, $row[ $key ] ) ) / 3600 / 24, 2 ), 2 );
+ $lastLogin = $wgLang->timeanddate( wfTimestamp( TS_MW, $row->$key ), true );
+ $daysAgo = $wgLang->formatNum( round( ( time() - wfTimestamp( TS_UNIX, $row->$key ) ) / 3600 / 24, 2 ), 2 );
$out .= '<td>' . $lastLogin . '</td>';
$out .= '<td style="text-align:right;">' . $daysAgo . '</td>';
} elseif ( $key === 'user_name' ) {
- $userPage = Title::makeTitle( NS_USER, $row[ $key ] );
+ $userPage = Title::makeTitle( NS_USER, $row->$key );
$userName = Linker::link( $userPage, htmlspecialchars( $userPage->getText() ) );
$out .= '<td>' . $userName . '</td>';
} else {
- $out .= '<td>' . htmlspecialchars( $row[ $key ] ) . '</td>';
+ $out .= '<td>' . htmlspecialchars( $row->$key ) . '</td>';
}
}
$out .= '</tr>';