Merge "Suppress unserialize errors"

This commit is contained in:
jenkins-bot 2016-09-30 20:13:42 +00:00 committed by Gerrit Code Review
commit 624c7aca6a

View file

@ -186,7 +186,9 @@ class OATHAuthHooks {
);
foreach ( $res as $row ) {
MediaWiki\suppressWarnings();
$scratchTokens = unserialize( base64_decode( $row->scratch_tokens ) );
MediaWiki\restoreWarnings();
if ( $scratchTokens ) {
$db->update(
'oathauth_users',