This bit of special contributions, according to its comment, is
intentionally ignoring errors. Also swallow exceptions with the
same expectations.
Change-Id: I82ceb0b223159c71796f64a890cf6209a6544209
* to extensions to subscribe to the hook to parse the row.
*/
wfSuppressWarnings();
- $rev = new Revision( $row );
- $validRevision = (bool)$rev->getId();
+ try {
+ $rev = new Revision( $row );
+ $validRevision = (bool)$rev->getId();
+ } catch ( MWException $e ) {
+ $validRevision = false;
+ }
wfRestoreWarnings();
if ( $validRevision ) {