mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/16689] Fix SQL errors for Bitly OAuth
PHPBB3-16689
This commit is contained in:
parent
c543400955
commit
6f183a831c
1 changed files with 2 additions and 0 deletions
|
@ -77,6 +77,7 @@ class bitly extends base
|
||||||
throw new exception('AUTH_PROVIDER_OAUTH_ERROR_REQUEST');
|
throw new exception('AUTH_PROVIDER_OAUTH_ERROR_REQUEST');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Prevent SQL error
|
||||||
if (!isset($result['data']['login']))
|
if (!isset($result['data']['login']))
|
||||||
{
|
{
|
||||||
throw new exception('AUTH_PROVIDER_OAUTH_RETURN_ERROR');
|
throw new exception('AUTH_PROVIDER_OAUTH_RETURN_ERROR');
|
||||||
|
@ -106,6 +107,7 @@ class bitly extends base
|
||||||
throw new exception('AUTH_PROVIDER_OAUTH_ERROR_REQUEST');
|
throw new exception('AUTH_PROVIDER_OAUTH_ERROR_REQUEST');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Prevent SQL error
|
||||||
if (!isset($result['data']['login']))
|
if (!isset($result['data']['login']))
|
||||||
{
|
{
|
||||||
throw new exception('AUTH_PROVIDER_OAUTH_RETURN_ERROR');
|
throw new exception('AUTH_PROVIDER_OAUTH_RETURN_ERROR');
|
||||||
|
|
Loading…
Add table
Reference in a new issue