Index: trunk/phase3/includes/RecentChange.php |
— | — | @@ -89,9 +89,8 @@ |
90 | 90 | */ |
91 | 91 | public static function newFromId( $rcid ) { |
92 | 92 | $dbr = wfGetDB( DB_SLAVE ); |
93 | | - $res = $dbr->select( 'recentchanges', '*', array( 'rc_id' => $rcid ), __METHOD__ ); |
94 | | - if( $res && $dbr->numRows( $res ) > 0 ) { |
95 | | - $row = $dbr->fetchObject( $res ); |
| 93 | + $row = $dbr->selectRow( 'recentchanges', '*', array( 'rc_id' => $rcid ), __METHOD__ ); |
| 94 | + if( $row !== false ) { |
96 | 95 | return self::newFromRow( $row ); |
97 | 96 | } else { |
98 | 97 | return null; |