mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/OATHAuth
synced 2024-12-01 03:16:24 +00:00
Merge "Suppress unserialize errors"
This commit is contained in:
commit
624c7aca6a
|
@ -186,7 +186,9 @@ class OATHAuthHooks {
|
||||||
);
|
);
|
||||||
|
|
||||||
foreach ( $res as $row ) {
|
foreach ( $res as $row ) {
|
||||||
|
MediaWiki\suppressWarnings();
|
||||||
$scratchTokens = unserialize( base64_decode( $row->scratch_tokens ) );
|
$scratchTokens = unserialize( base64_decode( $row->scratch_tokens ) );
|
||||||
|
MediaWiki\restoreWarnings();
|
||||||
if ( $scratchTokens ) {
|
if ( $scratchTokens ) {
|
||||||
$db->update(
|
$db->update(
|
||||||
'oathauth_users',
|
'oathauth_users',
|
||||||
|
|
Loading…
Reference in a new issue