mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-16 21:54:00 +02:00
[ticket/16689] Fix SQL errors for Bitly OAuth
PHPBB3-16689
This commit is contained in:
@@ -78,7 +78,7 @@ class bitly extends base
|
||||
}
|
||||
|
||||
// Return the unique identifier returned from bitly
|
||||
return $result['data']['login'];
|
||||
return $result['data']['login'] ?? throw new exception('AUTH_PROVIDER_OAUTH_RETURN_ERROR');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -102,6 +102,6 @@ class bitly extends base
|
||||
}
|
||||
|
||||
// Return the unique identifier
|
||||
return $result['data']['login'];
|
||||
return $result['data']['login'] ?? throw new exception('AUTH_PROVIDER_OAUTH_RETURN_ERROR');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user