mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-14 04:30:29 +01:00
[ticket/16689] Fix SQL errors for Bitly OAuth
PHPBB3-16689
This commit is contained in:
parent
c543400955
commit
6f183a831c
@ -77,6 +77,7 @@ class bitly extends base
|
||||
throw new exception('AUTH_PROVIDER_OAUTH_ERROR_REQUEST');
|
||||
}
|
||||
|
||||
// Prevent SQL error
|
||||
if (!isset($result['data']['login']))
|
||||
{
|
||||
throw new exception('AUTH_PROVIDER_OAUTH_RETURN_ERROR');
|
||||
@ -106,6 +107,7 @@ class bitly extends base
|
||||
throw new exception('AUTH_PROVIDER_OAUTH_ERROR_REQUEST');
|
||||
}
|
||||
|
||||
// Prevent SQL error
|
||||
if (!isset($result['data']['login']))
|
||||
{
|
||||
throw new exception('AUTH_PROVIDER_OAUTH_RETURN_ERROR');
|
||||
|
Loading…
x
Reference in New Issue
Block a user