mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/OATHAuth
synced 2024-11-28 10:10:19 +00:00
Merge "Suppress unserialize errors"
This commit is contained in:
commit
624c7aca6a
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue